/*
Theme Name: Twenty Twenty-Four Child
Theme URI:  https://example.com/
Description: Twenty Twenty-Fourの子テーマ
Author:     株式会社ともに不動産
Template:   twentytwentyfour
Version:    1.0.0
Text Domain: twentytwentyfour-child
*/

:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* 全ての要素にbox-sizing:border-boxを適用 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1.has-text-align-center.wp-block-post-title {
    display: none;
}

div.wp-block-group.alignwide.has-gradient-1-gradient-background.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    margin-top: 60px;
}

.block-editor-rich-text__editable.editor-block-list__block.wp-block.has-base-2-background-color.has-background.alignwide.wp-block-heading {
    margin: 0;
}

.custom-heading {
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.wp-block-cover .wp-block-cover__inner-container .custom-heading {
    font-size: 1.5rem;
    text-align: left;
    font-weight: 700;
    line-height: 1.6;
}

.wp-block-heading {
    margin-top: 50px;
}

.has-medium-font-size {
    font-size: var(--wp--preset--font-size--medium) !important;
}

@media screen and (max-width: 768px) {
    .wp-block-cover .wp-block-cover__inner-container .custom-heading {
        font-size: 1.5rem !important;
        text-align: left !important;
        font-weight: 700 !important;
        line-height: 1.6 !important;
    }

    .wp-block-cover.is-style-bottom-wave .wp-block-cover__inner-container {
        padding-left: 1em !important;
        padding-right: 1em !important;
    }
}

/* モバイル用調整 (最大768px) */
@media (max-width: 768px) {

    /* .has-text-align-center と .has-small-font-size のスタイル調整 */
    .has-text-align-center.has-small-font-size {
        display: flex;
        flex-direction: column;
        gap: 3px;
        text-align: left;
        align-items: flex-start;
    }

    /* wp-block-coblocks-highlight */
    .wp-block-coblocks-highlight {
        padding-left: 40px;
    }

    .wp-block-coblocks-highlight::before {
        font-size: 1.2em;
        left: 5px;
    }



    /* .wp-block-cover.is-style-bottom-wave の調整 */
    .wp-block-cover.is-style-bottom-wave {
        position: relative;
        min-height: 300px;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .wp-block-cover.alignfull.is-style-bottom-wave .wp-block-cover__inner-container {
        position: relative;
        z-index: 2;
        padding: 2rem 1rem;
        width: 100%;
    }

    /* .highlighted-text */
    .highlighted-text {
        font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.542), 1.4rem);
        padding: 12px;
    }

    /* .wpcf7-form */
    .wpcf7-form .postal-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpcf7-form .postal-container input {
        width: 100%;
    }
}

/* カルーセルの矢印非表示 */
.nav-button__prev,
.nav-button__next {
    display: none;
}

/* wp-block-coblocks-highlight */
.wp-block-coblocks-highlight {
    font-size: inherit;
    color: #0077cc;
    margin-bottom: 10px;
    position: relative;
    padding-left: 70px;
    border-left: 3px solid #0077cc;
    background-color: #f0f8ff;
    margin-top: 0;
}

.wp-block-coblocks-highlight a {
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.wp-block-coblocks-highlight a:hover {
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    border-color: #005fa3;
    color: #005fa3;
}

.wp-block-coblocks-highlight::before {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background-image: url('https://fudosan.tomonisan.com/WP/wp-content/uploads/2025/02/home.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* タイトルの上に細い線を引く */
.wp-block-coblocks-posts__content a {
    display: block;
    padding-top: 10px;
    box-shadow: 0px 1px 0px 0px #ccc;
    color: inherit;
    text-decoration: none;
}

.wp-block-coblocks-posts__item a {
    margin-top: 0;
}

.wp-block-group.lightblue-bg .wp-block-cover.alignfull {
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* .is-style-bottom-wave */
.is-style-bottom-wave .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 135%;
    object-fit: cover;
    object-position: center center;
    clip-path: inset(20% 0 0 0);
    background-size: cover;
    background-repeat: no-repeat;
    animation: slideImage 20s infinite alternate ease-in-out;
    z-index: 1;
}

.is-style-bottom-wave .wp-block-cover__inner-container {
    position: relative;
    top: -30px;
    z-index: 2;
}

.wp-block-cover {
    overflow: visible;
}

.lightblue-bg .wp-block-cover .wp-block-cover__inner-container .custom-heading {
    font-size: 1.5rem !important;       /* 2rem !important を打ち消すために !important */
    text-align: center !important;      /* left から center に */
    margin-top: -4em !important;        /* 必ず残す */
}

@media screen and (max-width: 768px) {
  .lightblue-bg .custom-heading {
    margin-top: -3em;  /* PCより少しマージントップを小さく調整 */
    font-size: 1.5rem !important;  /* モバイルでもしっかり効かせるために !important 付ける */
    text-align: left !important;   /* モバイルは左寄せに */
    line-height: 1.6 !important;
  }
}

/* アニメーションの設定 */
@keyframes slideImage {
    0% {
        object-position: 20% center;
    }

    50% {
        object-position: 80% center;
    }

    100% {
        object-position: 20% center;
    }
}

/* .contact-btn と .animated-btn のみにアニメーション適用 */
.contact-btn,
.is-style-default.animated-btn {
    animation: subtleFloat 3s ease-in-out infinite;
    animation-delay: 1s;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* ボタンホバー時の拡大効果 */
.contact-btn:hover,
.is-style-default.animated-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* 共通ボタンアニメーション */
@keyframes subtleFloat {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ページID 2032 の場合に .contact-btn を非表示 */
body.page-id-2032 .contact-btn {
    display: none;
}

/* お問い合わせフォームの必須項目のラベル */
.wpcf7-form .required-label {
    background-color: #e74c3c;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* フォーム要素 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    font-size: 16px;
    padding: 12px;
    min-height: 40px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.wpcf7-form input[type="submit"] {
    padding: 16px 24px;
    font-size: 18px;
    width: 100%;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #005fa3;
}

/* フォームのエラーメッセージ */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* フォームの成功メッセージ */
.wpcf7-form .wpcf7-mail-sent-ok {
    color: #2ecc71;
    font-size: 14px;
    margin-top: 5px;
}

/* フォームのラベル */
.wpcf7-form label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}


@media (forced-colors: active) {
    body {
        background-color: CanvasText;
        color: CanvasBackground;
    }
}


.tel-button {
    width: 200px;
    height: auto;
    transition: opacity 0.3s ease-in-out;
    border: none;
    outline: none;
    max-width: 100%;
}

.top-main-visual {
    position: relative;
    top: -195px;
    z-index: -1;
    width: 100vw;
    margin: 0 auto;
    /* 中央寄せ */
    overflow: hidden;
}


/*「電話ボタンとお問い合わせ」の横幅を制限し、適切なサイズに調整 */
.top-main-visual+.contact-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: none;
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 220px;
}

.has-base-background-color {
    background-color: transparent !important;
}


@media (max-width: 768px) {
    .top-main-visual img {
        height: auto !important;
        aspect-ratio: 376 / 667;
        object-fit: cover;
        object-position: center top;
    }
}

/* タブレット（769px〜1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-main-visual img {
        height: 550px;
        object-fit: cover;
        object-position: center;
    }
}

/* PC（1025px〜） */
@media (min-width: 1025px) {
    .top-main-visual img {
        height: 720px;
        object-fit: cover;
        object-position: center;
    }
}

a {
    position: relative;
    text-decoration: none;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease-in-out;
}

a:hover::after {
    width: 100%;
}

a:focus,
a:active {
    outline: none;
    box-shadow: none;
}

.ark-block-notice__icon {
    margin-right: 10px;
}

.ark-block-notice__title {
    display: inline-block;
    text-align: center;
}

.ark-block-notice__title {
    padding-bottom: 15px;
}

.ark-block-notice__body {
    margin-top: 10px;
}


/* ---------- 特別ボタン（グラデーション） ---------- */
.ark-block-button.is-btn-fill.special-block-button {
    background: linear-gradient(180deg, rgb(194, 169, 144) 51%, rgb(249, 249, 249) 100%);
    color: #111;
    font-weight: bold;
    line-height: 2;
    padding: 12px 35px;
    border-radius: 8px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.ark-block-button.is-btn-fill.special-block-button:hover {
    background: linear-gradient(180deg, rgb(250, 250, 250) 51%, rgb(194, 169, 144) 100%);
}

/* ---------- 通常ボタン ---------- */
.ark-block-button.is-btn-fill:not(.special-block-button) {
    color: #fff;
    font-weight: bold;
    line-height: 2;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    box-sizing: border-box;
}

.ark-block-button.is-btn-fill:not(.special-block-button):hover {
    opacity: 0.85;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 768px) {
    .ark-block-button__link {
        display: block;
        width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .ark-block-button.is-btn-fill {
        width: auto;
        max-width: 350px;
        margin: 0 auto;
    }
}

.ark-block-button__link {
    display: inline-block;
}

.ark-block-button__text {
    white-space: nowrap;
}


@media screen and (min-width: 769px) {
    .ark-block-buttons .ark-block-button.is-btn-fill {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
}


@media screen and (min-width: 769px) {
    .ark-block-buttons .ark-block-button.is-btn-fill {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
}


@media screen and (min-width: 769px) {
    .ark-block-buttons .ark-block-button.is-btn-fill .ark-block-button__link {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
}


@media screen and (min-width: 769px) {
    .ark-block-buttons .ark-block-button.is-btn-fill .ark-block-button__link {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
}


@media screen and (min-width: 769px) {
    .ark-block-buttons .ark-block-button.is-btn-fill {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
}




.featured-heading {
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    font-weight: 700;
    color: #ff6347;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
    animation: glowing 1.5s ease-in-out infinite;
}

@keyframes glowing {
    0% {
        text-shadow: 0 0 5px #ff6347, 0 0 10px #ff6347, 0 0 15px #ff6347;
    }

    50% {
        text-shadow: 0 0 20px #ff6347, 0 0 30px #ff6347, 0 0 40px #ff6347;
    }

    100% {
        text-shadow: 0 0 5px #ff6347, 0 0 10px #ff6347, 0 0 15px #ff6347;
    }
}


/* PC版 */
@media screen and (min-width: 769px) {
    .n2-ss-slider .n2-ss-layer-content .n2-ss-item-content p.n2-font-207c3f7b679bbd7c724b00c47a7fdb39-paragraph {
        font-size: 18px !important;
        line-height: 1.8 !important;
        letter-spacing: 0.5px !important;
    }

    /* .n2-style-7161d6057a31700d91e130269b7e65ff-heading にパディングを追加 */
    .n2-ss-slider .n2-ss-layer-content .n2-style-7161d6057a31700d91e130269b7e65ff-heading {
        padding: 20px !important;
    }
}

/* モバイル版 */
@media screen and (max-width: 768px) {
    .n2-ss-slider .n2-ss-layer-content .n2-ss-item-content p.n2-font-207c3f7b679bbd7c724b00c47a7fdb39-paragraph {
        font-size: 16px !important;
        line-height: 1.6 !important;
        letter-spacing: 0.3px !important;
    }

    /* .n2-style-7161d6057a31700d91e130269b7e65ff-heading にパディングを追加 */
    .n2-ss-slider .n2-ss-layer-content .n2-style-7161d6057a31700d91e130269b7e65ff-heading {
        padding: 15px !important;
    }
}


@media screen and (max-width: 768px) {
    .ark-block-notice__title {
        padding: 1.2em 1em;
        text-align: left !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }



    .is-style-bottom-wave .wp-block-cover__image-background {
        object-fit: cover;
        object-position: center center;
        height: 125%;
        transform: translateY(-20%);
    }

    .is-style-bottom-wave .wp-block-cover__background {
        height: 125%;
        transform: translateY(-10%);
    }

    .wp-block-cover.alignfull.is-style-bottom-wave {
        min-height: 200px;
    }

    .wp-block-heading.highlighted-text {
        padding: 1.2em 0;
        text-align: left !important;
        font-size: 1.5rem !important;
        font-weight: 500 !important;
        line-height: 1.6 !important;
    }
}

.coblocks-gallery--item {
    position: relative;
}

.ark-block-notice__body ark-keep-mt--s {
    padding-bottom: 10px;
}

.highlight-btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 1em 1.5em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.highlight-btn:hover {
    background-color: #e05500;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .tamano-section .wp-block-heading.has-text-align-center,
    .tamano-section p.has-text-align-center {
        text-align: left !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tamano-section p.has-text-align-center.has-background {
        text-align: center !important;
        padding-left: 0;
        padding-right: 0;
    }
}

.wp-block-cover.is-style-bottom-wave .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2;
    padding: 2rem 1rem;
    box-sizing: border-box;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

.old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
}

.new-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff5733;
    display: inline-block;
}

/* ブレイクポイント以下（モバイル）では改行しやすく */
@media (max-width: 768px) {
    .new-price {
        font-size: 20px;
    }

    .mobile-break {
        display: block;
    }
}

/* ブレイクポイント以上（PC）ではフォントさらに大きく */
@media (min-width: 769px) {
    .new-price {
        font-size: 32px;
    }

    .mobile-break {
        display: none;
    }
}

.carouselpro {
    display: none;
}

.top-main-visual img {
    width: 100% !important;
    height: auto !important;
    transition: none !important;
    z-index: 0 !important;
    position: relative !important;
    display: block;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}


.top-main-visual::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 70%);
    animation: shineSlide 3s linear 2;
    /* 3秒かけて2回 */
    pointer-events: none;
    z-index: 10;
}

@keyframes shineSlide {
    0% {
        transform: translateX(-100%) translateY(100%) rotate(25deg);
    }

    100% {
        transform: translateX(100%) translateY(-100%) rotate(25deg);
    }
}

.wp-block-group.has-base-2-background-color {
    background-color: transparent !important;
}

@media screen and (max-width: 767px) {
    .area-name {
        letter-spacing: -0.03em;
        text-align: left;
        margin-bottom: 0;
    }

    .content1 {
        margin-top: 0;
    }
}

.linked-image:hover {
    filter: brightness(1.05);
    cursor: pointer;
    transition: filter 0.3s ease;
}

/* ギャラリー内の画像にホバーエフェクト */
.coblocks-gallery--item img:hover {
    filter: brightness(1.05);
    transition: filter 0.3s ease;
    cursor: pointer;
}

/* タイトルリンクに下線アニメーションを適用 */
.wp-block-post-title a {
    position: relative;
    text-decoration: none;
}

.wp-block-post-title a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease-in-out;
}

.wp-block-post-title a:hover::after {
    width: 100%;
}

.wp-block-post-title a:focus,
.wp-block-post-title a:active {
    outline: none;
    box-shadow: none;
}

/* カテゴリーリンクにも同じアンダーラインアニメーションを適用 */
.wp-block-post-terms a {
    position: relative;
    text-decoration: none;
}

.wp-block-post-terms a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease-in-out;
}

.wp-block-post-terms a:hover::after {
    width: 100%;
}

.wp-block-post-terms a:focus,
.wp-block-post-terms a:active {
    outline: none;
    box-shadow: none;
}

/* クエリグループ内の投稿リストにスタイルを適用 */
.wp-block-query .wp-block-post {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.wp-block-query .wp-block-post:hover {
    transform: translateY(-10px);
}

/* タイトルのリンクのスタイル */
.wp-block-query .wp-block-post-title a {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.wp-block-query .wp-block-post-title a:hover {
    color: #1a1a1a;
}

/* カテゴリーのリンクスタイル */
.wp-block-query .taxonomy-category {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.wp-block-query .wp-block-post-date time {
    font-size: 13px;
    color: #aaa;
}

/* ページネーションのスタイル */
.wp-block-query-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.page-numbers {
    color: #B06B3C;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.page-numbers.current {
    background-color: #d8613c;
    color: white;
}

.page-numbers:hover {
    background-color: #d8613c;
    color: white;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .wp-block-query .wp-block-post {
        padding: 15px;
    }

    .wp-block-query {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .wp-block-query {
        grid-template-columns: 1fr;
    }

    .wp-block-query .wp-block-post {
        padding: 10px;
    }
}

/* 情報カテゴリ（青背景・白文字） */
.wp-block-post-terms a[href*="/category/info/"] {
    background-color: #005C99;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.85rem;
}

/* 物件カテゴリ（赤背景・白文字） */
.wp-block-post-terms a[href*="/category/property/"] {
    background-color: #d8613c;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.85rem;
}

/* ブログカテゴリ（緑背景・白文字） */
.wp-block-post-terms a[href*="/category/blog/"] {
    background-color: #00796b;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.85rem;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.mv-follow-section {
    margin-top: -140px !important;
    padding: 0;
}

@media (max-width: 767px) {
    .mv-follow-section {
        margin-top: -160px !important;
        padding: 0;
    }
}

footer.wp-block-template-part {
    background: url(https://fudosan.tomonisan.com/WP/wp-content/uploads/2025/05/footerhaikei-1.jpg) no-repeat center top;
    background-size: cover;
    padding-top: 40px;
    /* 内部のhas-global-paddingのpaddingが約50pxなので控えめに */
    padding-bottom: 50px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}


footer.wp-block-template-part::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 184, 119, 0.1);
    /* #e6b877 */
    z-index: 0;
    /* フッター内のコンテンツより下にしたいならさらに調整 */
    pointer-events: none;
}

/* 背景画像とオーバーレイの両方をこの要素にまとめる */
body.page-id-5626 .akiya-bg {
    position: relative;
    /* ← これ必須！ */
    background-image: url(https://fudosan.tomonisan.com/WP/wp-content/uploads/2025/05/akiya-v.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* オーバーレイ（半透明の色レイヤー） */
body.page-id-5626 .akiya-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(207, 202, 190, 0.8);
    z-index: 1;
    pointer-events: none;
}

/* コンテンツを前面に出す */
body.page-id-5626 .akiya-bg>* {
    position: relative;
    z-index: 2;
}



body.page-id-5626 :where(.wp-site-blocks)>*:last-child {
    margin-block-start: 0 !important;
}

/* 中のグループブロック（.section-narrow）を白背景で浮かせる */
.section-narrow {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 3em 1.5em;
    max-width: 960px;
    margin: 0 auto 2em auto;
}

.section-narrow:first-of-type {
    margin-top: 2em;
}

/* スマホ調整 */
@media screen and (max-width: 768px) {
    .section-narrow {
        padding: 2em 1em;
    }

    .akiya-bg {
        padding: 0.5em 0.5em;
    }
}

body.page-id-5626 .arkb-section--2 ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2em;
}

body.page-id-5626 .arkb-section--2 ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.75em;
    line-height: 1.8;
    font-size: 1.05em;
    color: #333;
    display: flex;
    align-items: center;
}

/* カスタムマーカー（中央揃え） */
body.page-id-5626 .arkb-section--2 ul li::before {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    background-color: #7a6c55;
    border-radius: 50%;
    margin-right: 0.8em;
    flex-shrink: 0;
}

.custom-contact-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.custom-contact-block h3,
.custom-contact-block h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.wp-block-heading.has-x-large-font-size {
    position: relative;
    display: block;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem 1.5rem;
}

h1.wp-block-heading.has-x-large-font-size {
    border-bottom: 3px solid #d8613c;
}

.custom-cover {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('https://fudosan.tomonisan.com/WP/wp-content/uploads/2024/07/tokutyou.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cover .cover-text {
    z-index: 2;
    position: relative;
    padding: 0 1rem;
}

.custom-cover .text-bg {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.custom-cover h2 {
    color: #fff;
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.custom-title-style {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}

.custom-section-title {
    padding: 20px 0;
}

.custom-section-text {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    color: #333;
}

.lightblue-bg {
    background-color: #e6f7ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 0 3.0rem;
}

.page span.wp-block-post-title {
    display: none;
}

/* ===========================
   共通ナビゲーション設定
   =========================== */
.simple-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 99999;
}

/* ハンバーガー全体のラッパー（モバイル時のみ表示） */
.menu-wrapper {
    display: none;
}

/* ハンバーガーアイコン */
.menu-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    outline: none;
    z-index: 10002;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.menu-toggle .top {
    top: 9px;
}

.menu-toggle .bottom {
    top: 20px;
}

.menu-toggle.open .top {
    transform: rotate(45deg);
    top: 14px;
}

.menu-toggle.open .bottom {
    transform: rotate(-45deg);
    top: 14px;
}

/* MENUラベル */
.menu-label {
    position: relative;
    font-size: 10px;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

/* 共通スタイル（PC/SP両方） */
.menu-list {
    display: flex;
    flex-direction: row;
    /* 初期は横並び */
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none !important;
}

.menu-list li {
    display: block;
    margin: 0 0.5em;
    line-height: 1;
}

.menu-list li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    padding: 0;
    border-bottom: none;
}

/* メインビジュアルのテキストオーバーレイ */
.main-visual-text-overlay {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: calc(100% - 40px);
    max-width: 800px;
}

.main-visual-text-overlay h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.3rem 0;
}

.caption-wrap {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.7rem;
    border-radius: 0.75rem;
}

.lead {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badges span {
    background: gold;
    color: #333;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ===========================
   モバイル（〜768px）
   =========================== */
@media (max-width: 768px) {
    .menu-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: 15px;
        z-index: 99999 !important;
    }

    .menu-list {
        flex-direction: column;
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: 80vh;
        background: #fff;
        overflow-y: auto;
        box-sizing: border-box;
        padding: 12px 0;
        z-index: 99999 !important;
    }

    .menu-list.open {
        display: flex;
    }

    .menu-list li a {
        font-size: 1rem;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
    }


    /* メインビジュアルのテキスト縮小 */
    .main-visual-text-overlay {
        top: 49% !important;
    }


    .main-visual-text-overlay h1 {
        font-size: 1.1rem;
    }

    .lead {
        font-size: 0.8rem;
    }

    .caption-wrap {
        padding: 0.6rem 0.8rem;
    }

    .badges span {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }

    /* ヘッダーエリアの高さ確保 */
    header.wp-block-template-part>.wp-block-group.alignwide.has-base-background-color {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* ロゴサイズ調整 */
    header.wp-block-template-part figure.wp-block-image img {
        max-height: 70px !important;
    }


}

/* ===========================
   PC（769px〜）
   =========================== */
@media (min-width: 769px) {
    .menu-wrapper {
        display: none !important;
    }

    .menu-list {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: auto !important;
        max-height: none !important;
        background: transparent !important;
        padding: 0 !important;
        z-index: auto !important;
    }

    .menu-list li a {
        font-size: 0.8rem !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .main-visual-text-overlay {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: calc(100% - 40px);
        max-width: 1200px;
        padding: 0;
        height: 100%;
        color: #fff;
    }

    .main-visual-text-overlay h1 {
        margin: 0;
        padding: 0.5rem 1rem;
        font-size: 2.2rem;
        border-radius: 0.5rem;
        white-space: nowrap;
        margin-top: 40vh;
        text-align: center;
        width: 100%;
    }

    .main-visual-text-overlay .caption-wrap {
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem 2rem;
        border-radius: 0.75rem;
        width: auto;
        align-self: flex-end;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        color: #fff;
    }

    .lead {
        font-size: 1.1rem;
    }

    .badges {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        justify-content: flex-start;
    }

    .badges span {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }
}

/* ===========================
   その他レイアウト調整
   =========================== */

/* ロゴの左寄せ（グループ1） */
header.wp-block-template-part .wp-block-group.alignwide>.wp-block-group:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ヘッダーエリアのパディング */
header.wp-block-template-part>.wp-block-group.alignwide.has-base-background-color {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* ロゴ画像 */
header.wp-block-template-part figure.wp-block-image img {
    max-height: 60px;
    height: auto;
    vertical-align: middle;
}

/* メニュー周りスペース調整 */
header.wp-block-template-part nav.simple-nav .menu-wrapper {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* ロゴとメニューの縦位置を揃える */
header.wp-block-template-part .wp-block-group.is-layout-flex>.wp-block-group {
    align-items: center;
}

.wp-block-coblocks-faq-item__answer {
    margin: 20px !important;
}

.ark-block-section__color {
    z-index: 0;
}

/* スライダー全体の横幅調整（画像がはみ出さないように） */
.wp-block-image.aligncenter.size-large {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* スライダー内の画像を正しく表示する */
.wp-block-image .slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
}

/* slick-slide のはみ出し防止 */
.wp-block-image .slick-slide {
    width: 100% !important;
    box-sizing: border-box;
}

/* slick-track の横スクロール防止 */
.wp-block-image .slick-track {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* slick-list のオーバーフロー隠す */
.wp-block-image .slick-list {
    overflow: hidden !important;
}

/* スライダー画像の親要素に position: relative を追加 */
.house-section .slider {
    position: relative;
}

.tamano-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem 3rem;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tamano-section {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

@media screen and (max-width: 768px) {
  .tamano-section {
    padding-top: 1rem;
  }
}

/* ▼ house-section 専用スライダー調整（他に影響なし） */
.house-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem 3rem;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .house-section {
        max-width: 100%;
        padding: 1rem 1rem 2.5rem;
    }
}

/* スライダー全体 */
.house-section .slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* スライド1枚ずつを絶対重ね表示（fade用） */
.house-section .slick-slide {
    position: absolute !important;
    top: 0;
    left: 0 !important;
    width: 100% !important;
    opacity: 0;
    transition: opacity 600ms linear;
    display: block !important;
    height: auto !important;
    float: none !important;
    z-index: 1;
}

/* 表示中のスライドのみ見える */
.house-section .slick-slide.slick-active {
    opacity: 1 !important;
    z-index: 2;
    position: relative !important;
}

/* slick-trackは高さのみ合わせる */
.house-section .slick-track {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

/* slick-listははみ出し防止 */
.house-section .slick-list {
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

/* 画像表示調整 */
.house-section .slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
    margin: 0 auto;
}