@charset "utf-8";

:root {
    --ink: #171717;
    --muted: #666;
    --line: #eee;
    --indigoblue: #1a237e;
    --chip: #f6f6f6;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .06)
}

.container {
    /* width: min(1120px, 92vw); */
    margin-inline: auto;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 16px)
}

.row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap
}

.muted {
    color: var(--muted)
}


/*******************************************************
front-page.php #hero
*******************************************************/
.hero {
    position: relative;
    background: #000;
    color: #fff;
    display: flex;
    /* place-items: center; */
    height: 86vh;
    min-height: 400px;
    align-items: center;
    justify-content: flex-start;
}

.hero .hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero .hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero .hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    object-position: center;

}

.hero .hero-slider .slide.is-active {
    opacity: 1
}

.hero__pagination {
    position: absolute;
    inset: auto 0 24px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3
}

.hero__dot {
    width: 8px;
    height: 8px;
    /* border-radius: 50%; */
    background: rgba(255, 255, 255, .5);
    border: none;
}

.hero__dot.is-active {
    background: #fff
}

.hero__center {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    max-width: 92%;
    padding: 0 4%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: end;
    text-align: right;
}

.hero__center {
    font-size: clamp(12px, 2vw, 18px);
}

.hero__center h2 {
    letter-spacing: 0.15em;
    line-height: 1.6em;
    font-size: clamp(20px, 3vw, 56px);
    font-family: "Shippori Mincho B1", serif;
    font-weight: 700;
}

.hero__center p {
    font-size: clamp(14px, 2vw, 18px);
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    text-align: right !important;
}

.kiriya-badge {
    display: inline-block;
    padding: .55rem 1rem;
    border: 2px solid #fff;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
    letter-spacing: .3em;
    background: rgba(0, 0, 0, .25);
    font-size: 1.8rem;
}

.kiriya-badge:last-child {
    margin-right: -0.3em;
}

.side-menu {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: #fff;
    z-index: 2
}

.side-menu ul {
    display: grid;
    gap: 8px
}

.side-menu a {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: 13px
}

@media (min-width:1024px) {
    .side-menu {
        display: block
    }

    .hero {
        min-height: 250px;
    }
}

@media (max-width:768px) {
    .hero {
        height: 100vh;
    }
}



/*-----------元のやつ----------------*/
.top-news__box {
    display: grid;
    gap: 70px;
    grid-template-columns: 1fr 3fr;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;

}

.top-news__box .inner-right {
    width: 100%;
}

.top-news__box .inner-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-news__box .inner-left p {
    line-height: 1.8em;
}


@media screen and (max-width:768px) {
    .top-news__box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 16px;
    }
}


/*******************************************************
front-page.php #about
*******************************************************/
.about {
    position: relative;
    overflow: hidden;

}

.about .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .15;
}

.about .veil {
    position: absolute;
    inset: auto 0 0 0;
    top: 18%;
    height: 56%;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(2px)
}

.about__inner {
    position: relative;
    z-index: 2
}

.about__h {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.4;
    color: var(--indigoblue);
    /* letter-spacing: 0.1em; */
}

.about__p {
    /* max-width: 80ch; */
    color: #333;
    letter-spacing: 0.05em;
    /* margin-left: 20ch; */
    line-height: 2em;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__side {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: .2em;
    color: #333;
    font-weight: 700
}

@media (max-width:900px) {
    .about__layout {
        display: grid;
        gap: 0;
    }

    .about__side {
        writing-mode: horizontal-tb;
        transform: none;
        order: -1
    }

    .about__p {
        max-width: 100%;
        margin-left: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }
}


/*******************************************************
front-page.php  work　施工実績
*******************************************************/
/* 共通（モバイルファースト） */
.works {
    padding: 80px 0;
}

#works {
    width: 100%;
}

#works .worksBox {
    width: 100%;
}

#works .worksBox .inner {
    display: flex;
    flex-direction: column;
    /* 画像 → テキストの順ならここを変える */
    width: 100%;
}

#works .worksBox .inner .inner-text p {
    border-left: 0.5px solid #1a237E;
    margin-left: 0;
    padding-left: 1em;
    margin-top: 2em;
}

/* テキスト・画像はまずは普通にブロックで */
#works .worksBox .inner .inner-text,
#works .worksBox .inner .inner-img {
    position: static;
    /* ← デフォルトは通常フロー */
    width: 100%;
}

/* スマホ用の余白だけ整える */
#works .worksBox .inner .inner-text {
    background-color: #f7f7f7;
    padding: 32px 20px;
}

#works .worksBox .inner .inner-img img {
    width: 100%;
    display: block;
}

#works .worksBox:nth-child(even) .inner {
    flex-direction: column-reverse;
}


/*******************************************************
front-page.php  featured　強み
*******************************************************/

.featured {
    display: grid;
    gap: 28px;
    margin: 20px 0
}

.feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center
}

.feature:nth-child(2n) {
    grid-template-columns: .9fr 1.1fr
}

.feature .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow)
}

.feature .text {
    display: grid;
    gap: 10px
}

.feature .meta {
    font-size: 12px;
    color: var(--muted)
}

@media (max-width:900px) {
    .feature {
        grid-template-columns: 1fr
    }
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0
}

@media (max-width:900px) {
    .thumbs {
        grid-template-columns: repeat(2, 1fr)
    }
}

.thumbs figure {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid #222;
    background: #111;
    color: #fff
}

.btn--ghost {
    background: #fff;
    color: #111;
    border-color: #111;
    width: 200px;
}


/*******************************************************
front-page.php  company
*******************************************************/

/* ========== Company Hero ========== */
.companyHero {
    position: relative;
    padding: clamp(28px, 4vw, 48px) 16px 56px;
    background: #fff;
}

.companyHero__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* 背景画像（上部にドン） */
.companyHero__bg {
    height: clamp(220px, 32vw, 360px);
    border-radius: 16px;
    background-image: url("/wp-content/themes/twentytwentyfive-child/assets/images/top-company.png");
    /* ここ差し替え */
    background-size: cover;
    background-position: top;
    width: calc(100% - 200px);
    margin-left: 200px;
}

/* 白いカード（画像に重ねる） */
.companyHero__card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: clamp(22px, 3.2vw, 44px);
    margin-top: -230px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

/* 本文 */
.companyHero__text {
    margin: 0 0 26px;
    color: #555;
    line-height: 2.0;
    font-size: 15px;
    max-width: 78ch;
}


/* ========== SP調整 ========== */
@media (max-width: 768px) {
    .companyHero__card {
        width: min(760px, 86%);
        margin: -64px auto 0;
        padding: clamp(15px, 3.2vw, 44px);
        box-shadow: 0 10px 16px rgba(0, 0, 0, .10);

    }

    .companyHero__text {
        font-size: 14px;
        line-height: 1.9;
        margin: 0 0 10px;
    }

    .companyHero__bg {
        width: 100%;
        margin-left: 0;
    }
}


/* ========== Flow Hero ========== */
.flowHero {
    position: relative;
    padding: clamp(28px, 4vw, 48px) 16px 56px;
    background: #fff;
}

.flowHero__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 背景画像（上部にドン） */
.flowHero__bg {
    height: clamp(220px, 32vw, 360px);
    border-radius: 16px;
    background-image: url("/wp-content/themes/twentytwentyfive-child/assets/images/top-flow2.png");
    /* 差し替え */
    background-size: cover;
    background-position: bottom;
    width: calc(100% - 200px);
}

/* 白いカード（画像に重ねる） */
.flowHero__card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: clamp(22px, 3.2vw, 44px);
    margin-top: -230px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

/* タイトル */
.flowHero__title {
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: .01em;
    font-weight: 800;
    color: #2c2c2c;
}

.flowHero__sub {
    margin: 10px 0 22px;
    font-weight: 700;
    color: #0f8ea4;
}

/* 本文 */
.flowHero__text {
    margin: 0 0 26px;
    color: #555;
    line-height: 2.0;
    font-size: 15px;
    max-width: 78ch;
}

/* ボタン */
.flowHero__btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px 14px 22px;
    border-radius: 999px;
    background: #0f8ea4;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 18px #c0ebf2;
}

.flowHero__btnIcon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0f8ea4;
    font-size: 16px;
}

.flowHero__btn:hover {
    filter: brightness(0.96);
}

/* ========== SP調整 ========== */
@media (max-width: 768px) {
    .flowHero__card {
        width: min(760px, 86%);
        margin: -64px auto 0;
        padding: clamp(15px, 3.2vw, 44px);
        box-shadow: 0 10px 16px rgba(0, 0, 0, .10);
        ;
    }

    .flowHero__text {
        font-size: 14px;
        line-height: 1.9;
    }

    .flowHero__bg {
        width: 100%;
    }
}