/* ============================================================
   ベース
   ============================================================ */
:root {
    --main_color: #182f65;
    --light_blue: #79b9d7;
    --font_en: "IBM Plex Sans JP", sans-serif;
    --form_border: #e3e3e3;
}

html {
    scroll-padding-top: 130px;
    /* 画像の遅延読み込みやスライダーの初期化で本文の高さが後から変わると、
       ブラウザの「スクロールアンカリング」がその変化分だけスクロール位置を
       ずらしてしまい、アンカーリンクの着地点が本来の位置から大きくずれる。
       これを防ぐため無効化する。 */
    overflow-anchor: none;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px !important;
    }
}

body,
p {
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    line-height: 1.88;
    font-weight: normal;
    line-break: strict;
}

p {
    margin: 0 0 1.6em;
}

a {
    color: #333333;
    background-color: transparent;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: normal;
    text-decoration: none;
}

th,
td,
dt,
dd {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: normal;
}

@media (max-width: 768px) {
    body,
    p,
    a,
    th,
    td,
    dt,
    dd {
        font-size: 16px;
    }
}

figure {
    display: inline-block;
}

.site-content {
    padding: 0;
    max-width: none;
}

.content-area {
    margin-bottom: 0;
}

.sec_container,
.entry-content>*:last-child {
    margin-bottom: 120px;
}

.common_inner {
    width: min(1216px, 90%);
    margin: 0 auto;
}

.font_serif {
    font-family: var(--font_en);
}

.font_md {
    font-size: 20px;
}

h1 {
    margin-bottom: 60px !important;
    margin-top: 0 !important;
}

h2 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 0 !important;
    font-family: var(--font_en);
    color: var(--light_blue);
}

.lineupt_container h2,
.works_container h2 {
    padding-left: 70px;
}

.sub-ttl-jp {
    font-size: 18px;
    color: #333333;
    padding-left: 20px;
    font-weight: 500;
    white-space: nowrap;
}

h3 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 22px;
    color: #333333;
}

h4 {
    font-family: var(--font_en);
    color: var(--main_color);
    font-weight: 700;
    font-size: 20px;
    padding: 0;
}

h5 {
    font-family: var(--font_en);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
}

.sp-only {
    display: none;
}

@media (max-width: 990px) {
    .lineupt_container h2,
    .works_container h2 {
        padding-left: 0;
    }

    .pc-only {
        display: none;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .home h2 {
        display: flex;
        flex-direction: column;
    }

    .sub-ttl-jp {
        padding-left: 0;
    }

    .font_md,
    .has-medium-font-size {
        font-size: 16px !important;
    }

    .sec_container {
        margin-bottom: 85px;
    }
}

@media (max-width: 500px) {
    .sp-only {
        display: block;
    }
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */
.breadcrumbs {
    width: min(1216px, 90%);
    margin: 0 auto;
    margin-bottom: 3em;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;

    letter-spacing: 0.03em;
    color: #333333;
}

.breadcrumbs-list-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-list-item:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #333333;
    opacity: 0.4;
}

.breadcrumbs-list-item a {
    color: #333333;
    opacity: 0.6;
    text-decoration: none;
    font-size: 16px;
}

.breadcrumbs-list-item [aria-current="page"] {
    opacity: 0.9;
    font-size: 16px;
    font-family: initial
}

@media (max-width: 768px) {
    .breadcrumbs {
        width: 90%;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    border-bottom: none;
    margin-bottom: 110px;
}

body:not(.home) .site-header {
    margin-bottom: 7em;
}

.main-header {
    background-color: #ffffff;
    box-shadow: none;
    padding: 0;
}

.main-header-content {
    background-color: #fff;
    max-width: none;
    padding: 10px 4.036%;
    margin: 0 auto;
    position: relative;
    z-index: 150;
}

/* ロゴ／サイトタイトル */
.site-branding {
    display: flex;
    align-items: center;
    padding-right: 0;
}

.site-branding .custom-logo-link {
    display: block;
}

.site-branding .custom-logo-link img {
    max-height: 64px;
    width: auto;
}

.site-title {
    margin: 0;
    line-height: 1;
}

.site-description {
    display: none;
}

@media (max-width: 1280px) {
    .main-header .site-logo img {
        transform: scale(0.6, 0.6);
    }
}

@media (max-width: 768px) {
    .site-header {
        margin-bottom: 100px;
    }
}

/* ナビゲーションの上に電話番号を配置 */
.header-right {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.header-phone {
    text-align: right;
}

.header-phone-number {
    align-items: center;
    color: var(--main_color);
    font-family: var(--font_en);
    display: flex;
    font-size: 30px;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.4;
}

.header-phone-icon {
    height: 1em;
    width: auto;
}

.header-phone-hours {
    color: #333333;
    display: block;
    font-size: 1rem;
}

.main-navigation {
    line-height: 1;
}

.main-navigation ul.menu>li>a {
    font-size: 16px;
    padding: 18px 3.4em 18px 0;
    display: inline-block;
}

.external-link>a::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 5px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* PCベース：ハンバーガー/ドロワーは常時非表示、PCナビゲーションを表示 */
.drawer-hamburger,
.drawer-overlay,
.drawer-navigation {
    display: none;
}

.main-header-content .main-navigation {
    display: block;
}

/* ロゴ＋電話番号＋PCナビゲーションの実際に必要な幅は約1260px（フォント読み込みタイミングにより多少前後する）で、
   1216px で切り替えるとその間（1216〜1260px 前後）でPCナビゲーションが折り返して崩れる隙間ができてしまう。
   十分な余白を見て1340px以下でハンバーガーメニューに切り替え、電話番号はドロワー内へ */
@media (max-width: 1340px) {
    .drawer-hamburger {
        display: block;
    }

    .drawer-navigation {
        display: block;
    }

    .main-header-content .main-navigation {
        display: none;
    }

    .header-right .header-phone {
        display: none;
    }
}

/* メニュー項目が増えて1340pxより広い画面でも1行に収まらないときは、
   js/header-nav-fit.js が html に .is-nav-collapsed を付けてハンバーガーメニューに切り替える */
html.is-nav-collapsed .drawer-hamburger,
html.is-nav-collapsed .drawer-navigation {
    display: block;
}

html.is-nav-collapsed .main-header-content .main-navigation,
html.is-nav-collapsed .header-right .header-phone {
    display: none;
}

/* ドロワー内の電話番号（スマホ・タブレット時のみ表示） */
.drawer-phone {
    background-color: var(--main_color);
    color: #fff;
    margin: 0;
    padding: 28px 24px 24px;
    text-align: center;
    width: 100%;
}

.drawer-phone-number {
    align-items: center;
    color: #fff;
    display: flex;
    font-family: var(--font_en);
    font-size: 24px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.4;
}

.drawer-phone-icon {
    height: 0.9em;
    margin-right: 8px;
    width: auto;
}

.drawer-phone-hours {
    color: #cfe0ee;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

/* ナビゲーション（デスクトップ表示分のみ／ドロワー側は対象外） */
.main-header>.main-header-content>.main-navigation ul.menu,
.main-header>.main-header-content>.main-navigation>div>ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header>.main-header-content>.main-navigation ul.menu>li,
.main-header>.main-header-content>.main-navigation>div>ul>li {
    position: relative;
    margin: 0;
    padding: 0 24px;
}

.main-header>.main-header-content>.main-navigation ul.menu>li>a,
.main-header>.main-header-content>.main-navigation>div>ul>li>a {
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
}

.main-header>.main-header-content>.main-navigation ul.menu>li>a:hover,
.main-navigation a:hover,
.drawer-navigation a:hover {
    color: var(--main_color);
}

/* デスクトップのホバードロップダウン（親テーマ）は幅が225px固定でテキストが折り返るため、
   内容に合わせて幅を広げて改行を防ぐ。
   ※ top を 100% からずらして隙間を作ると、その隙間でホバーが途切れてすぐ閉じてしまうため、
     余白は top ではなく padding-top（要素自体は隙間なく繋がったまま）で作る。 */
.main-header-content .main-navigation ul ul {
    padding-top: 16px;
    top: 100%;
    white-space: nowrap;
    width: auto;
    min-width: 225px;
}

/* スクロール追従のクローンヘッダー（親テーマ）は表示/非表示を transform:translateY() で行っているが、
   transform を持つ祖先は中の position:fixed（ドロワー）の基準点をビューポートからその祖先自身に変えてしまい、
   斜めにずれる／表示が崩れる原因になる。同じ見た目のスライドを transform を使わず top で行うことで回避する。 */
.main-header-clone {
    top: -150px;
    transform: none;
}

.main-header-clone-show {
    border-bottom: 1px solid #35353524;
    top: 0;
    transform: none;
}

.main-navigation .current_page_item>a,
.main-navigation .current-menu-item>a {
    color: inherit;
    font-weight: normal;
}

@media screen and (min-width: 601px) {
    .admin-bar .main-header-clone-show {
        top: 46px;
        transform: none;
    }
}

@media screen and (min-width: 782px) {
    .admin-bar .main-header-clone-show {
        top: 32px;
        transform: none;
    }
}

.top-bar {
    position: relative;
    z-index: 150;
}

.drawer-hamburger {
    position: relative;
    z-index: 150;
}

.drawer-navigation {
    background-color: #fff;
    width: 100%;
    max-width: none;
    height: 100dvh;
}

.drawer-overlay {
    height: 100dvh;
}

/* iOS Safariは画面最下部（ホームインジケーター周辺）の背景色を検知してアドレスバー／
   下部ツールバーの色まで合わせてしまうため、その部分だけは .drawer-navigation の白背景を
   見せたままにし、実際のメニュー色（紺）はセーフエリア分だけ内側に収める。 */
.drawer-navigation-content {
    background-color: var(--main_color);
    margin-bottom: env(safe-area-inset-bottom, 0px);
    display: block;
    padding: 0;
    padding-top: 92px;
}

.drawer-navigation-content .main-navigation {
    color: #fff;
    margin: 0;
    text-align: left;
    width: 100%;
}

.drawer-navigation-content .main-navigation ul.menu,
.drawer-navigation-content .main-navigation>div>ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-navigation-content .main-navigation ul.menu>li,
.drawer-navigation-content .main-navigation>div>ul>li {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
}

.drawer-navigation-content .main-navigation ul.menu>li.menu-item-has-children>a:after,
.drawer-navigation-content .main-navigation>div>ul>li.menu-item-has-children>a:after,
.drawer-navigation-content .main-navigation ul.menu>li.page_item_has_children>a:after,
.drawer-navigation-content .main-navigation>div>ul>li.page_item_has_children>a:after {
    content: none;
}

.drawer-navigation-content .main-navigation ul ul {
    box-shadow: none;
    left: auto;
    opacity: 1;
    position: static;
    top: auto;
    transition: none;
    width: 100%;
}

.drawer-navigation-content .main-navigation ul.menu>li>a,
.drawer-navigation-content .main-navigation>div>ul>li>a {
    background-color: var(--main_color);
    color: #fff;
    display: block;
    font-size: 17px;
    letter-spacing: 0.05em;
    padding: 22px 24px;
    text-align: left;
    width: 100%;
}

.drawer-navigation-content .main-navigation ul.menu>li>a:hover,
.drawer-navigation-content .main-navigation>div>ul>li>a:hover {
    color: #fff;
    opacity: 0.85;
}

.drawer-navigation .current-menu-item>a,
.drawer-navigation .current_page_item>a {
    font-weight: 700;
}

.drawer-navigation .sub-menu {
    background-color: #fff;
    display: block;
    list-style: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .35s ease;
}

.drawer-navigation .sub-menu.toggled-on {
    max-height: 1000px;
}

.drawer-navigation .sub-menu li {
    border-bottom: 1px dotted #182f65;
    margin: 0;
    padding: 0;
}

.drawer-navigation .sub-menu li:last-child {
    border-bottom: none;
}

.drawer-navigation .sub-menu li a {
    color: var(--main_color);
    display: block;
    font-size: 15px;
    padding: 18px 24px 18px 40px;
}

.drawer-navigation .header-social-link {
    padding: 24px;
}

html:has(.main-header.drawer-opened),
body:has(.main-header.drawer-opened) {
    overflow: hidden;
}

.drawer-navigation,
.drawer-navigation-content {
    overscroll-behavior: contain;
}

.drawer-navigation .dropdown-toggle {
    right: 0;
    top: 10px;
}

.drawer-navigation .dropdown-toggle:after {
    color: #FFF;
}

@media (max-width: 768px) {
    body:not(.home) .site-header {
        margin-bottom: 4em;
    }

    .drawer-navigation-content {
        padding-top: 70px;
    }
}

/* ==========================================================================
   KV（トップページのみ／header.phpで直接指定）
   ========================================================================== */
.kv_section {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.kv_bg {
    background-position: center;
    background-size: cover;
    height: 786px;
    width: 100%;
}

/* アートボード1920px：コンテンツ幅1765px（左右余白 計155px＝各77.5px＝1920pxに対して4.036%）に合わせた位置 */
.kv_copy {
    bottom: 70px;
    box-sizing: border-box;
    left: 0;
    padding-left: 4.036%;
    padding-right: 4.036%;
    position: absolute;
    right: 0;
    width: 100%;
}

.kv_copy_main {
    font-family: var(--font_en);
    color: #fff;
    font-size: clamp(2.4rem, 1.35rem + 4.47vw, 4.75rem);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 30px;
}

.kv_copy_sub img {
    height: 28px;
}

@media (max-width: 1340px) {
    .kv_bg {
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .kv_bg {
        height: 530px;
    }

    .kv_copy {
        bottom: 40px;
    }

    .kv_copy_main {
        margin-bottom: 10px;
    }

    .kv_copy_sub img {
        height: 18px;
    }
}

/* ==========================================================================
共通ボタン
   ========================================================================== */
.wp-block-button__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main_color);
    color: #fff;
    font-weight: normal;
    letter-spacing: 0.05em;
    padding: 18px 56px 18px 30px;
    transition: background-color 0.3s ease;
}

.wp-block-button a:hover {
    opacity: 1;
    color: #FFF;
}

.wp-block-button__link:hover {
    background-color: #4a5977;
}

/* 矢印（1本の連続したパス、線のみ・塗りなし） */
.wp-block-button__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 30px;
    width: 22px;
    height: 12px;
    background: url(../img/arrow_white.png) no-repeat;
    background-size: contain;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.wp-block-button__link:hover::after {
    transform: translateY(-50%) translateX(8px);
}

@media (max-width: 768px) {
    .wp-block-buttons>.wp-block-button.has-custom-width {
        width: 100% !important;
    }
}

/* ==========================================================================
TOP-about
   ========================================================================== */
.about_container {
    margin-bottom: 0;
    padding-bottom: 130px;
    background: url(../img/about_sec_bg.png) no-repeat center bottom -1px;
}

@media (max-width: 768px) {
    .about_container {
        padding-bottom: 110px;
    }

    .about_container p.has-text-align-center {
        text-align: left;
    }

    .about_container p.has-text-align-center br:not(:last-of-type) {
        display: none;
    }
}

/* ==========================================================================
TOP-real-estate
   ========================================================================== */

.real_estate_container {
    background: url(../img/real-estate-bg.jpg) no-repeat;
    padding: 85px 0;
    background-size: cover;
}

.real_estate_container .smb-box {
    padding: 70px 0 0 70px;
}

.real_estate_container .smb-box .wp-block-columns {
    margin: 0;
}

.real_estate_container .wp-block-buttons {
    margin-bottom: 70px;
}

.real_estate_container .wp-block-column {
    flex-basis: 29%;
    min-width: 332px;
}

@media (max-width: 991px) {
    .real_estate_container {
        background: url(../img/real-estate-bg-sp.jpg) no-repeat;
        background-size: cover;
    }

    .real_estate_container .smb-box {
        padding: 30px 20px;
    }

    .real_estate_container .wp-block-buttons {
        margin-bottom: 0;
        justify-content: center;
    }
}

/* ==========================================================================
TOP-lineup
   ========================================================================== */
.home .wp-block-cover {
    overflow: hidden;
    min-height: 400px;
}

.wp-block-cover__image-background {
    transition: transform 0.5s ease;
}

.wp-block-cover:hover .wp-block-cover__image-background {
    transform: scale(1.1);
}

.wp-block-cover__inner-container {
    text-align: center;
}

.wp-block-cover__inner-container figure {
    margin-bottom: 0;
}

.lineupt_container .wp-block-columns {
    gap: 10px;
    justify-content: space-between;
}

@media (max-width: 785px) {
    .home .wp-block-cover {
        height: auto;
        min-height: 240px;
    }

    .lineupt_container .wp-block-cover__inner-container .wp-block-image img {
        width: 80%;
    }
}

/* ==========================================================================
TOP-House building
   ========================================================================== */
.house_container {
    background: url(../img/house-building-bg.png) no-repeat;
    padding: 85px 0;
    background-size: cover;
    background-position: right;
}

.house_container h2,
.house_container .sub-ttl-jp {
    color: #FFF;
}

.house_container p {
    border-top: 1px solid #FFF;
    font-size: 20px;
    margin-bottom: 0;
}

.house_container .house-building-links p:last-of-type {
    border-bottom: 1px solid #FFF;
    margin-bottom: 50px;
}

.house_container .house-building-links p>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    padding: 22px;
}

.house_container .house-building-links p>a::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #fff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    transition: transform 0.3s ease;
}

.house_container .house-building-links p>a:hover::after {
    transform: scale(1.3);
}

.house_container .house-img-item figure {
    width: 100%;
}

@media (1020px <=width <=1280px) {
    .house_container h2 {
        display: flex;
        flex-direction: column;
    }

    .house_container h2 .sub-ttl-jp {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
}

@media (max-width: 1020px) {
    .house_container {
        background: url(../img/house-building-bg-sp.png) no-repeat;
        background-size: cover;
        background-position: center;
    }

    .house_container .wp-block-columns {
        flex-direction: column;
    }
}

@media (787px <=width <=1020px) {
    .house_container .house-img-item figure>img {
        width: 100%;
        height: 410px;
        object-fit: cover;
        object-position: center -270px;
    }
}

@media (max-width: 990px) {
    .house_container .house-building-links p>a {
        padding-left: 0;
    }
}

@media (max-width: 786px) {
    .house_container .house-img-item figure>img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}

/* ==========================================================================
TOP-works
   ========================================================================== */
.works_container .wp-block-columns {
    margin-bottom: 60px;
    gap: 5px;
}

.works_container .wp-block-image {
    object-fit: cover;
    height: 100%;
}

.works_container .wp-block-image img {
    height: 100%;
}

/* ==========================================================================
TOP-reform
   ========================================================================== */
.reform_container .common_inner {
    height: auto;
    min-height: 500px;
}

.reform_container .common_inner .wp-block-group__inner-container .wp-block-columns {
    position: relative;
}

.reform_container h2,
.reform_container .sub-ttl-jp,
.reform_container p {
    color: #FFF;
}

.reform-txt-block {
    padding: 70px 24% 70px 70px;
    box-sizing: border-box;
}

.reform-img-block {
    position: absolute;
    right: 0;
    top: 92px;
    width: 46%;
    max-width: 560px;
}

.reform-img-block img {
    display: block;
    width: 100%;
    height: auto;
}

/* 見出し・本文が折り返しそうな幅になったら、重ね配置をやめて画像を下に配置する（タブレット縦向きの1024px前後も含めて対応） */
@media (max-width: 1024px) {
    .reform_container .common_inner {
        min-height: 0;
    }

    .reform_container .wp-block-columns {
        flex-direction: column;
        gap: 0;
    }

    .reform_container .wp-block-column {
        flex-basis: auto !important;
        width: 100% !important;
    }

    .reform-txt-block {
        padding: 30px 20px;
    }

    .reform-img-block {
        position: unset;
        max-width: none;
        background-color: #79b9d7;
        text-align: right;
        padding: 30px 20px;
    }
}

/* ==========================================================================
TOP-news
   ========================================================================== */
.news_container .wp-block-group__inner-container .wp-block-columns {
    padding: 0 70px;
}

.news-l-items {
    flex-basis: 36.62%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-l-items .wp-block-buttons {
    justify-content: flex-start;
}

.news_container .news-r-items ul>li {
    display: flex;
    flex-direction: row;
}

.news_container .news-r-items ul>li>a.wp-block-latest-posts__post-title {
    order: 2;
    color: #333333;
    font-size: 16px;
}

.news_container .news-r-items ul>li .wp-block-latest-posts__post-date {
    padding: 0 40px;
    font-size: 16px;
    margin-top: 0;
}

.wp-block-latest-posts {
    border-top: solid 1px var(--light_blue);
    padding-top: 1.5em;
    padding-bottom: 0;
}

.wp-block-latest-posts li {
    border-bottom: solid 1px var(--light_blue);
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
}

.wp-block-latest-posts li:last-of-type {
    margin-bottom: 0;
}

.news_container .news-r-items ul>li:hover a,
.news_container .news-r-items ul>li:hover time {
    opacity: 0.7;
}

@media (max-width: 1280px) {
    .news_container .wp-block-group__inner-container .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .news-l-items,
    .news-r-items {
        flex-basis: 100% !important;
    }

    .news-l-items {
        flex-direction: row;
        align-items: center;
    }

    .news-l-items h2 {
        margin-bottom: 0;
    }
}

@media (max-width: 990px) {
    .news_container .wp-block-group__inner-container .wp-block-columns {
        padding: 0;
    }

    .news_container .news-r-items ul>li {
        flex-direction: column;
    }

    .news_container .news-r-items ul>li .wp-block-latest-posts__post-date {
        padding-left: 0;
    }
}

/* ==========================================================================
   Footer CTA（お問い合わせ）
   ========================================================================== */
.footer-cta {
    background: url(../img/footer-cta-bg.png) no-repeat;
    background-size: cover;
    padding: 70px 24px;
    text-align: center;
    color: #ffffff;
}

.footer-cta-content {
    width: min(900px, 100%);
    margin: 0 auto;
}

.footer-cta-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.footer-cta-title {
    font-family: var(--font_en);
    font-size: 60px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.footer-cta-title-sub {
    font-size: 18px;
    font-family: var(--font_en);
}

.footer-cta-text {
    margin: 0 0 40px;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-cta-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: var(--main_color) 1px solid;
    color: var(--main_color) !important;
    padding: 25px 60px;
    min-width: 390px;
}

.footer-cta-tel-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font_en);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
}

.footer-cta-tel-icon {
    width: 21px;
    height: auto;
}

.footer-cta-tel-hours {
    font-size: 14px;
    color: #333333;
}

.footer-cta-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--main_color);
    color: #ffffff !important;
    min-width: 390px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    font-size: 25px;
    min-height: 122px;
}

.footer-cta-form:hover {
    opacity: 0.85;
}

.footer-cta-form-icon {
    width: 32px;
    font-size: 18px;
}

@media (max-width: 500px) {
    .footer-cta-tel-number {
        font-size: 25px;
    }

    .footer-cta-tel {
        padding: 25px 0px;
    }

    .footer-cta-form {
        padding: 25px 0px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Footer メイン（会社情報・ナビ・バナー）
   ========================================================================== */
.footer-main {
    background-color: #ffffff;
    padding: 60px 0;
}

.footer-main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    width: min(1216px, 90%);
    margin: 0 auto;
}

.footer-company {
    width: min(330px, 100%);
}

.footer-nav-and-banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex: 1;
    /* メニューの幅が広くても、会社情報の下に回り込まず横に並べたまま収める */
    min-width: 0;
}

.footer-nav-columns {
    max-width: 100%;
}

.footer-company-logo {
    margin-bottom: 16px;
}

.footer-company-logo img {
    width: 300px;
    height: auto;
}

.footer-company-name {
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

.footer-company-name-sub {
    display: block;
    font-weight: normal;
    font-size: 14px;
    color: #666666;
}

.footer-company-hours {
    margin: 0 0 50px;
    font-size: 16px;
}

.footer-company-detail {
    margin-bottom: 12px;
}

.footer-company-detail p {
    margin: 0;
    font-size: 16px;
}

.footer-company-detail p>a {
    font-size: inherit;
}

.footer-company-detail p.footer-company-detail-name {
    font-size: 18px;
    font-weight: 700 !important;
    color: var(--main_color);
}

/* メニュー項目が増えても列がそろうよう、決まった列数の格子状に並べる（5項目目以降は次の段の左の列から）
   各列は文字の幅まで広がり、入りきらないときは列の中で折り返す */
.footer-nav-columns-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px clamp(30px, 4vw, 60px);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 横幅が狭いときは3列 */
.footer-company-detail p>a,
.footer-nav-columns-list>li>a {
    color: #333333;
}

/* フッターナビゲーションは本文（18px）より少し小さくして、長い項目が折り返さないようにする */
.footer-nav-columns-list a {
    font-size: 16px;
}

.footer-nav-columns-list li .sub-menu {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    border-left: 1px solid #333333;
}

.footer-nav-columns-list .sub-menu li {
    margin-bottom: 10px;
}

.footer-nav-columns-list li .sub-menu a {
    color: #333333;
    padding-left: 0.75em;
}

.footer-nav-columns-list a:hover,
.footer-nav-columns-list li .sub-menu a:hover {
    color: var(--main_color);
}

.footer-nav-columns-list .menu-item-205 .sub-menu {
    border: none;
    margin-left: 0;
}

.footer-nav-columns-list .menu-item-205 .sub-menu a {
    padding-left: 0;
}

.footer-banner a {
    display: inline-block;
}

.footer-banner a:hover {
    opacity: 0.85;
}

.footer-banner img {
    display: block;
    max-width: 100%;
}

@media (max-width: 1216px) {
    .footer-nav-columns {
        display: none;
    }

    .footer-main-content {
        align-items: end;
    }
}

/* タブレット幅：メニューが非表示になりバナーだけが右端に寄るため、バナーを右側の幅に合わせて広げる（最大500px） */
@media (769px <= width <= 1216px) {
    .footer-banner,
    .footer-banner a {
        width: 100%;
        max-width: 500px;
    }

    .footer-banner img {
        /* footer.php の img に直接書かれた width: 400px を上書き */
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .footer-company-logo img {
        max-width: 280px;
    }

    .footer-cta {
        padding: 48px 20px;
    }

    .footer-cta-title {
        font-size: 40px;
    }

    .footer-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-cta-tel,
    .footer-cta-form {
        min-width: auto;
    }

    .footer-main {
        padding: 40px 0;
    }

    .footer-main-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-banner {
        align-self: stretch;
    }

    .footer-banner a {
        width: 100%;
    }

    /* スマホはバナーを画面の中央に配置 */
    .footer-banner img {
        margin: 0 auto;
    }

    .footer-company-detail p,
    .footer-company-detail p.footer-company-detail-name {
        font-size: 16px;
    }
}

.site-bottom {
    padding: 0;
    border: none;
    background-color: var(--main_color) !important;
}

.site-info {
    clear: unset;
    float: unset;
    padding: 12px 0;
    text-align: center;
    margin-top: 0;
}

.site-copyright {
    font-size: 14px;
    color: #FFF;
    margin-bottom: 0;
}

.copy-symbol {
    font-size: 1.3em;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .copy-symbol {
        font-size: 1.6em;
    }
}

/* ==========================================================================
  下層
   ========================================================================== */

body:not(.home, .blog, .single) .entry-content,
.has-sidebar .site-content {
    width: min(1216px, 90%);
    margin: 0 auto;
}

.jumbotron-overlay {
    background-color: unset;
}

/* アーカイブページの標準タイトル（archive.php の .page-header）は
   header.php で追加した .jumbotron のタイトルと重複するため視覚的に非表示（読み上げは維持） */
.archive .page-header {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.page .jumbotron-content {
    display: flex;
    flex-direction: column;
}

.jumbotron-content .subheader {
    color: #ffffff;
    text-transform: lowercase;
    font-size: 50px;
    margin: 0;
}

.jumbotron-content .subheader::first-letter {
    text-transform: uppercase;
}

.jumbotron-content h1 {
    margin-bottom: 0px !important;
    font-size: 18px;
    text-shadow: none;
}

body:not(.home) .entry-content h2 {
    text-align: center;
    color: #333333;
    font-size: 30px;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 20px;
}

.entry-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.post-list .hentry {
    border-bottom: solid 1px var(--light_blue);
    padding-bottom: 4em;
    margin-bottom: 4em;
}

.entry-title>a,
.single .content-area h2 {
    font-family: var(--font_en);
    color: #333333;
    font-weight: 500;
    font-size: 2.5rem;
}

.entry-title>a:hover {
    color: #333333;
    opacity: 0.8;
}

.no_link>a,
.entry-header .entry-meta a {
    color: #333333;
    pointer-events: none;
}

.widget-area .wp-block-group .wp-block-paragraph {
    color: var(--light_blue);
    font-size: 20px;
    font-weight: bold;
}

.page-title-h3 {
    gap: 0;
    margin-bottom: 48px;
}

body:not(.home) .entry-content h3 {
    color: #333333;
    font-size: 30px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    padding-left: 20px;
}

.jumbotron-content {
    padding-bottom: 60px;
    padding-top: 60px;
}

.sub-title-line {
    position: relative;
    padding-left: 18px;
    margin-bottom: 0 !important;
    color: #8bbbe1;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.sub-title-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 10px;
    height: 1px;
    background-color: currentColor;
}

@media (max-width: 980px) {
    .post-list:last-child .hentry {
        border: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    body:not(.home) .entry-content h2,
    body:not(.home) .entry-content h3,
    .entry-title>a,
    .single .content-area h2 {
        font-size: 22px;
    }

    .jumbotron-content .subheader {
        font-size: 30px;
    }

    .jumbotron-content {
        padding-bottom: 30px;
        padding-top: 30px;
    }
}

/* ==========================================================================
  会員ページ：住宅設備説明書（ACF リピーターフィールド出力）
   ========================================================================== */

.facility-manual {
    margin-top: 2em;
}

/* 見出しはプライバシーポリシーの見出しと共通 */
.facility-manual__heading,
.policy-detail h3.policy-ttl {
    display: block;
    font-size: 20px !important;
    color: var(--main_color) !important;
    font-weight: 500;
    padding: 0 0 20px 0 !important;
    margin-bottom: 20px;
    border-bottom: 1px solid #c6c6c6;
}

.facility-manual__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facility-manual__item {
    padding: 0.4em 0;
    line-height: 1.7;
}

.facility-manual__link {
    color: var(--main_color);
    text-decoration: underline;
}

.facility-manual__note {
    color: #d32f2f;
    font-weight: bold;
}

/* ==========================================================================
  商品ラインナップ
   ========================================================================== */
.line_up_item .design-detail .wp-block-column figure {
    margin-bottom: 15px;
}

.line_up_item .design-detail .wp-block-column p:nth-of-type(1) {
    margin-bottom: 0.5em;
    line-height: 1;
}

.fitpia-check .fitpia-list-box {
    width: min(900px, 100%);
    margin: 0 auto;
}

.fitpia-list-box {
    gap: 10px;
}

.price {
    font-size: 30px;
}

@media (max-width: 780px) {
    .fitpia-list-box {
        gap: 0;
    }

    .fitpia-check .fitpia-list-box .wp-block-column ul {
        margin-left: 0;
    }

    .fitpia-list-box .wp-block-column:nth-child(1) ul>li:last-of-type {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-id-22 .wp-block-cover {
        height: 180px;
    }

    .line_up_item .design-detail .wp-block-column p:nth-of-type(1) {
        text-align: left;
    }

    h4:where(.wp-block-heading).has-background {
        padding-left: 0;
        padding-right: 0;
    }

    .price {
        font-size: 22px;
    }
}

/* ==========================================================================
リンク集
   ========================================================================== */
hr {
    border-color: #eee !important;
}

/* ボタン */
.arrow-circle-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    text-decoration: none;
    margin-bottom: 0;
}

.link-items .arrow-circle-link {
    justify-content: space-between;
}

/* 右端の丸付き矢印（擬似要素） */
.arrow-circle-link::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #333333;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    transition: transform 0.3s ease;
    margin-left: 16px;
}

/* ホバー時に丸付き矢印を少し大きくする */
.arrow-circle-link:hover::after {
    transform: scale(1.3);
}

.arrow-circle-link p:nth-child(1) {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .link-items .wp-block-columns:last-child .wp-block-column:last-child hr {
        display: none;
    }
}

/* ==========================================================================
プライバシーポリシー
==========================================================================*/
/* 見出し（.policy-ttl）は「会員ページ：住宅設備説明書」の .facility-manual__heading と共通 */
.policy-detail {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .policy-detail {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   安心な住まいができるまで
   ========================================================================== */
/* ステップ全体の連番（カウンター）初期化 */
body {
    counter-reset: flow-step;
}

.house-b-img {
    gap: 10px;
    justify-content: space-between;
}

.house-b-img figure>img {
    width: 100%;
}

/* 各ステップのグループブロック */
.flow-step-item {
    position: relative;
    counter-increment: flow-step;
    padding-left: 150px;
    margin-bottom: 80px;
    padding-top: 32px;
    min-height: 80px;
}

/* ステップのまとまりの先頭（直前が別ステップでないもの）で番号を01からやり直す */
/* ※counter-resetだと兄弟要素に番号が引き継がれず01が並ぶため、counter-setで値を1に戻す */
.flow-step-item:not(.flow-step-item + .flow-step-item) {
    counter-set: flow-step 1;
}

/* 丸数字（擬似要素） */
.flow-step-item::before {
    content: counter(flow-step, decimal-leading-zero);
    /* 01, 02 を自動生成 */
    position: absolute;
    top: 0;
    left: 0;
    width: 95px;
    height: 95px;
    border: 1px solid var(--main_color);
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main_color);
    font-size: 1.25rem;
    z-index: 2;
}

/* 縦の繋ぎ線 */
.flow-step-item::after {
    content: "";
    position: absolute;
    top: 80px;
    bottom: -80px;
    /* 下の要素まで線を伸ばす */
    left: 47px;
    /* 丸の中心軸 */
    width: 1px;
    background-color: var(--main_color);
    z-index: 1;
}

/* 最後のステップだけ縦線を消す（直後に次のステップが無いもの。下にpタグ等があっても判定できる） */
.flow-step-item:not(:has(+ .flow-step-item))::after {
    display: none;
}

/* スマホ・タブレット表示用のレイアウト調整 (画面幅768px以下) */
@media screen and (max-width: 768px) {
    /* 各ステップの余白と丸数字用スペースを縮小 */
    .flow-step-item {
        padding-left: 60px !important;
        padding-top: 10px;
        margin-bottom: 32px;
        min-height: 44px;
    }

    /* 丸数字のサイズダウン */
    .flow-step-item::before {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }

    /* 縦の繋ぎ線の位置と長さを丸の大きさに合わせて自動微調整 */
    .flow-step-item::after {
        top: 44px;
        bottom: -32px;
        left: 21px;
        /* 44pxの丸の中心位置 */
    }

    .flow-step-item .wp-block-columns {
        gap: 10px;
    }
}

/* ==========================================================================
   施工実績（works）一覧・記事ページ
   ========================================================================== */

/* サイドバー分の余白確保レイアウトを解除し、ページ中央に配置する */
.single-works #primary,
.post-type-archive-works #primary,
.tax-works_type #primary {
    width: 100%;
    max-width: none;
    float: none;
    flex: 1 1 100%;
}

/* 一覧ページ（施工実績・お知らせ・カテゴリー・検索結果）の下にも、下層ページと同じくフッターまでの余白をとる */
.works-archive-inner,
.blog .site-main,
.archive:not(.post-type-archive-works, .tax-works_type) .site-main,
.search .site-main {
    margin-bottom: 120px;
}

/* カテゴリー絞り込みタブ */
.works-filter {
    margin-bottom: 50px;
}

.works-filter-item {
    line-height: 2;
}

.works-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.works-filter-link {
    display: inline-block;
    padding: 5px 30px;
    border: 1px solid var(--light_blue);
    border-radius: 30px;
    color: var(--light_blue);
    font-family: var(--font_en);
    transition: background-color .2s ease, color .2s ease;
}

.works-filter-link:hover,
.works-filter-link.is-active {
    background-color: var(--light_blue);
    color: #ffffff;
}

/* カテゴリーバッジ（カード・記事共通） */
.works-badge {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--main_color);
    color: #ffffff;
    font-family: var(--font_en);
    border-radius: 3px;
}

.works-card-terms {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.works-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.works-terms .works-badge:hover {
    opacity: .8;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.works-no-results {
    padding: 60px 0;
    text-align: center;
    color: #666666;
}

.works-card-link {
    display: block;
    color: inherit;
}

.works-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.works-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.works-card-link:hover .works-card-thumbnail img {
    transform: scale(1.05);
}

.works-card-body {
    padding-top: 16px;
}

.works-card-location {
    font-size: 14px;
    color: var(--light_blue);
    font-family: var(--font_en);
    margin-bottom: 8px;
}

.works-card-title {
    font-size: 22px;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: #333333;
    margin: 0 0 10px;
}

.works-card-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
}

@media (max-width: 990px) {
    .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .works-list {
        grid-template-columns: 1fr;
    }
}

/* ページネーション（施工実績・お知らせ等、サイト全体で共通のデザイン） */
.pagination,
.posts-navigation {
    margin-top: 60px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #c6c6c6;
    font-family: var(--font_en);
    color: #333333;
    text-decoration: none;
    line-height: 1;
}

.pagination .page-numbers:hover:not(.current, .dots) {
    background-color: #f2f2f2;
}

.pagination .page-numbers.current {
    background-color: var(--light_blue);
    border-color: var(--light_blue);
    color: #ffffff;
}

.pagination .page-numbers.dots {
    border: none;
    min-width: auto;
    padding: 0 4px;
}

/* ==========================================================================
  記事ページ
   ========================================================================== */

.works .entry-header {
    flex-direction: column;
    margin-bottom: 0;
}

.works-single {
    margin-bottom: 120px;
}

.works-single .entry-title {
    font-size: 30px;
    color: var(--main_color);
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 30px;
}

.works-gallery {
    margin-bottom: 40px;
}

/* スライダー・画像1枚のみ（ギャラリー未登録時のアイキャッチ）共通 */
.works-gallery-slide,
.works-gallery-single-image {
    background-color: #f2f2f2;
}

.works-gallery-slide img,
.works-gallery-single-image img {
    width: 100%;
    aspect-ratio: 1600 / 1080;
    object-fit: contain;
    background-color: #f2f2f2;
}

.works-gallery-slider {
    /* ドットを画像の下の専用スペースに配置し、画像と重ならないようにする */
    padding-bottom: 50px;
}

.works-gallery-slider .slick-prev,
.works-gallery-slider .slick-next {
    z-index: 1;
    width: 56px;
    height: 56px;
}

.works-gallery-slider .slick-prev:before,
.works-gallery-slider .slick-next:before {
    font-size: 36px;
}

.works-gallery-slider .slick-prev {
    left: 20px;
}

.works-gallery-slider .slick-next {
    right: 20px;
}

.works-gallery-slider .slick-dots {
    bottom: 0;
}

.works-gallery-slider .slick-dots li {
    width: 22px;
    height: 22px;
    box-shadow: none;
}

.works-gallery-slider .slick-dots li button {
    width: 22px;
    height: 22px;
}

.works-gallery-slider .slick-dots li button:before {
    font-size: 16px;
    color: var(--light_blue);
    opacity: .5;
}

.works-gallery-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--light_blue);
}

/* スマホは枚数が多いとドットが複数行に折り返して見づらくなるため、
   ドットは非表示にし、矢印とスワイプ操作のみで送る */
@media (max-width: 768px) {
    .works-gallery-slider {
        padding-bottom: 0;
    }

    .works-gallery-slider .slick-dots {
        display: none !important;
    }

    .works-single .entry-title {
        font-size: 25px;
    }
}

@media (max-width: 500px) {
    .works-gallery-slider .slick-prev,
    .works-gallery-slider .slick-next {
        width: 44px;
        height: 44px;
    }

    .works-gallery-slider .slick-prev:before,
    .works-gallery-slider .slick-next:before {
        font-size: 28px;
    }

    .works-gallery-slider .slick-prev {
        left: 8px;
    }

    .works-gallery-slider .slick-next {
        right: 8px;
    }
}

.works-meta {
    border-top: 1px solid #c6c6c6;
}

.works-meta-row {
    display: flex;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px solid #c6c6c6;
}

.works-meta-row dt {
    width: 160px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--main_color);
}

.works-meta-row dd {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

@media (max-width: 600px) {
    .works-meta-row dt {
        width: 100%;
        margin-bottom: 8px;
    }
}

.flex-box figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   お問い合わせフォーム テーブル
   ============================================================ */
.form-box table {
    display: block;
    width: 100%;
    border-collapse: collapse;
}

.form-box tbody {
    display: block;
}

.form-box tr {
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 1px solid var(--form_border);
    padding: 42px 0;
}

.form-box tr:first-child {
    padding-top: 0;
}

.form-box th,
.form-box td {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    vertical-align: middle;
    font-weight: normal;
    color: #333333;
}

.form-box th {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 280px;
    max-width: 280px;
    font-size: 20px;
}

.form-box th p {
    margin: 0;
}

.form-box td {
    flex: 1;
    min-width: 0;
}

.form-box td ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* 「必須」バッジ */
.form-box .required {
    display: inline-block;
    flex-shrink: 0;
    background-color: var(--light_blue);
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 4px;
}

/* テキスト系入力欄 */
.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="tel"],
.form-box input[type="number"],
.form-box textarea {
    width: 100%;
    max-width: 100%;
    padding: 18px 20px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    font-size: 16px;
    color: #333333;
    background-color: #fff;
}

.form-box textarea {
    min-height: 160px;
    resize: vertical;
}

.form-box input::placeholder,
.form-box textarea::placeholder {
    color: #b3b3b3;
}

/* ラジオボタン */
.form-box .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.form-box .wpcf7-list-item {
    margin: 0;
}

.form-box .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}

.form-box input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--main_color);
}

.p-apply__submit-box {
    text-align: center;
}

.form-box input[type="submit"] {
    background-color: var(--main_color);
    padding: 20px 50px;
}

@media (max-width: 768px) {
    .form-box tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 24px 0;
    }

    .form-box th {
        max-width: none;
        flex: 0 0 auto;
    }

    .form-box td {
        width: 100%;
    }

    .wpcf7-spinner {
        display: none;
    }
}

/* ============================================================
   お問い合わせ 送信完了画面
   ============================================================ */
.thanks-box {
    text-align: center;
}

.thanks-box p {
    margin-bottom: 1.2em;
}

.thanks-box-btn {
    justify-content: center;
    margin-top: 40px;
}

/* ============================================================
   カラムブロック内に配置したBoxブロック（smb-box）の高さ揃え
   ============================================================ */
/* カラムブロックの各列にBoxブロック（枠線付きのカード）を1つだけ入れているとき、
   テキスト量の違いで折り返し行数が変わり、レスポンシブ幅によって左右のカードの
   高さがバラバラになってしまう。カラム自体を親の行いっぱいにストレッチし、
   Box本体もカラムの高さいっぱいに広げることで、常に左右の高さを揃える。
   （height:100% ではなくカラムをflex化してBox側をflex:1にする方式にしているのは、
     iOS Safariで画像を含むflexアイテムがheight:100%だとうまく伸びないことがあるため） */
.wp-block-column:has(> .smb-box) {
    align-self: stretch;
    display: flex;
}

.wp-block-column>.smb-box {
    flex: 1;
    width: 100%;
}

/* PCでは画像クリックでライトボックスを開かない */
@media (min-width: 768px) {
    a[data-lbwps-width] {
        pointer-events: none;
    }
}

/* ____________________________________________________________
   投稿詳細ページ（施工実績・お知らせ）「一覧に戻る」ボタン
   見た目・ホバーは共通ボタン（.wp-block-button__link）をそのまま使用
   ____________________________________________________________ */
.back-to-list {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.back-to-list .wp-block-button {
    width: 300px;
    max-width: 100%;
}

.back-to-list .wp-block-button__link {
    width: 100%;
    border-radius: 0;
    text-decoration: none;
    padding-right: 30px;
}

/* 一覧に戻るボタンは矢印なし */
.back-to-list .wp-block-button__link::after {
    content: none;
}

/* ____________________________________________________________
   お問い合わせフォーム：プルダウン（年齢など）
   テキスト入力欄と同じ見た目にそろえ、右端に下向き矢印を表示
   ____________________________________________________________ */
.form-box select {
    width: 100%;
    max-width: 320px;
    padding: 18px 48px 18px 20px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    font-size: 16px;
    color: #333333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 20px center;
    background-size: 12px 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* ____________________________________________________________
   会社概要：アクセスマップ
   地図（左）を広めに、住所・公共交通機関（右）をコンパクトに
   ____________________________________________________________ */
.access-map iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.access-columns .font_md {
    margin: 0 0 20px;
}

/* 公共交通機関の枠：余白を詰めてコンパクトに */
.access-columns .is-style-vk-group-dotted {
    padding: 16px 20px;
    margin: 0;
}

.access-columns .is-style-vk-group-dotted p {
    margin: 0 0 6px;
}

.access-columns .is-style-vk-group-dotted p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .access-map iframe {
        height: 320px;
    }
}

/* お問い合わせ「入力内容を確認する」ボタンをTOPのボタンと同じ見た目にする */
.wpcf7 button.cf7c-to-confirm {
    position: relative;
    display: inline-block;
    width: auto;
    padding: 18px 56px 18px 30px !important;
    background-color: var(--main_color) !important;
    color: #fff;
    border: 0;
    border-radius: 0 !important;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.6;
    cursor: pointer;
    transition: background-color .3s;
}

.wpcf7 button.cf7c-to-confirm:hover,
.wpcf7 button.cf7c-to-confirm:focus {
    background-color: #4a5977 !important;
}

/* 「入力内容を確認する」「送信する」ボタンの矢印 */
.wpcf7 button.cf7c-to-confirm::after,
.cf7c-btns .cf7c-send::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 30px;
    width: 22px;
    height: 12px;
    background: url("../img/arrow_white.png") no-repeat 0 0 / contain;
    transform: translateY(-50%);
    transition: transform .3s;
    pointer-events: none;
}

.wpcf7 button.cf7c-to-confirm:hover::after,
.cf7c-btns .cf7c-send:hover::after {
    transform: translateY(-50%) translateX(8px);
}

/* お問い合わせ：個人情報の取り扱いチェックボックスを入力欄(td)の開始位置に揃える */
.form-box .acceptance-text {
    text-align: left;
    padding-left: 280px;
}

.form-box .acceptance-text .wpcf7-list-item {
    margin-left: 0;
}

@media (max-width: 768px) {
    .form-box .acceptance-text {
        padding-left: 0;
    }
}

/* お問い合わせ：【お問い合わせ後のメールについて】の上の余白 */
.form-box .acceptance-text + p {
    margin-top: 60px;
}

/* ===== お問い合わせ：入力→確認→完了（仕組みは functions.php の tokai_home_contact_steps） ===== */

/* 入力画面：「入力内容を確認する」ボタンの位置 */
.cf7c-input-wrap {
    text-align: center;
    margin-top: 1em;
}

.cf7c-error {
    color: #d00;
    font-size: .9em;
    margin-top: .3em;
}

/* 確認画面：送信用の入力欄は隠す（CF7「お問い合わせ（確認画面）」フォーム） */
.cf7c-fields {
    display: none;
}

.cf7c-lead {
    margin-bottom: 0;
}

/* 確認画面：入力内容の表（入力画面と同じ .form-box のデザインを使う） */
.cf7c-confirm.form-box table {
    margin: 42px 0 60px;
}

.cf7c-confirm.form-box th,
.cf7c-confirm.form-box td {
    border: 0;
    background: none;
    padding: 0;
}

.cf7c-confirm.form-box td {
    white-space: pre-wrap;
    word-break: break-all;
}

/* 確認画面：ボタン（TOPのボタンと同じ見た目） */
.cf7c-btns {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.cf7c-btns .cf7c-back,
.wpcf7 .cf7c-btns .cf7c-send input.wpcf7-submit {
    position: relative;
    display: inline-block;
    min-width: 200px;
    padding: 18px 56px 18px 30px;
    background-color: var(--main_color);
    color: #fff;
    border: 0;
    border-radius: 0;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.6;
    cursor: pointer;
    transition: background-color .3s;
}

.wpcf7 .cf7c-btns .cf7c-send input.wpcf7-submit:hover,
.wpcf7 .cf7c-btns .cf7c-send input.wpcf7-submit:focus {
    background-color: #4a5977;
}

.wpcf7 .cf7c-btns .cf7c-send input.wpcf7-submit:disabled {
    opacity: .6;
    cursor: default;
}

/* 「修正する」はグレー・矢印なし */
.cf7c-btns .cf7c-back {
    padding-right: 30px;
    background-color: #888;
    text-decoration: none;
    text-align: center;
}

.cf7c-btns .cf7c-back:hover,
.cf7c-btns .cf7c-back:focus {
    background-color: #9a9a9a;
}

/* 確認画面：送信ボタン（CF7の[submit]）に矢印を付けるための外側 */
.cf7c-btns .cf7c-send {
    position: relative;
    display: inline-block;
}

.cf7c-btns .cf7c-send .wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 100%;
    margin: -12px 0 0 8px;
}

/* PC（4列表示時）：フッターバナーをナビ2段目の一番下に揃えて右側に配置 */
