@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* ========================================
   基本設定
   ======================================== */

body {
    font-family: "Zen Kaku Gothic New", sans-serif !important;
    font-weight: 400;
    font-style: normal;
}

.pc {
    display: block;
}

.font-s-size {
    font-size: 0.8em;
    line-height: 1.4em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.is-layout-flex {
    gap: 2rem;
}

.wp-block-navigation__container {
    gap: initial;
}

.sp-blend-title,
.sp-kamo-title {
    display: none;
}

.sp {
    display: none;
}

p {
    line-height: 2.4em;
}

p,
h2,
h3,
h4 {
    letter-spacing: 0.1em;
}

.single p {
    word-break: keep-all;
}

a:hover {
    text-decoration: none;
}

a:hover img {
    opacity: 0.7;
    transition: opacity 0.5s;
}

.home .main {
    background: none !important;
	padding:0 100px;
}
.main {
    background: none !important;

}

.w-box {
    width: 870px;
    margin: 0 auto;
}

.alignwide {
    margin-left: calc(50% - 640px);
    margin-right: calc(50% - 640px);
    width: 1280px;
}

.alignfull,
.footer {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
}

.p-big {
    font-size: 20px;
}

.about-box a {
    padding-left: 2em;
    text-decoration: none;
}

/* ========================================
   2. ヘッダー・ナビゲーション
   ======================================== */

.header-container {
    padding: 20px 0;
}

.header-container-in.hlt-top-menu .logo-header img {
    height: 50px;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
    content: " ";
}

.navi-in > ul {
    gap: 20px;
}

.navi-in > ul li {
    height: 28px;
}

.navi-in > ul li a {
    display: block;
    position: relative;
    padding: 2px 5px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 15px;
}

/* ナビボタン色分け */
.m-kamo a {
    background: #de6a42;
    color: #fff !important;
}

.m-soudan a {
    background: #e3c87c;
    color: #836954;
}

.m-project a {
    background: #9e8470;
    color: #fff !important;
}

/* ========================================
   3. コンテンツパーツ（ボックス・画像）
   ======================================== */

.p01box {
    padding: 50px;
    border-radius: 30px;
    background: #dfd0bd;
    margin: 60px 0 !important;
}

.p01box h3 {
    border: none;
    text-align: center;
    padding: 60px 0 !important;
}

.p01box p {
    text-align: center;
    padding: 20px 0;
}

.p02box {
    padding: 60px;
    border-radius: 30px;
    background: #dfd0bd;
    margin-top: -60px;
    position: relative;
}

.p02box h3 {
    position: absolute;
    left: 0;
    top: 50px;
    width: 279px;
    padding: 10px 20px !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-align: center;
    background: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/bk-story.png") no-repeat left center;
    background-size: cover;
}

.story-in {
    width: 70%;
    margin-right: 0 !important;
}

.story-hito {
    margin-top: -140px;
    z-index: 999;
    position: sticky;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    margin-right: 40px;
}

.about-box {
    background: #fcfdfd;
    box-shadow: 30px 30px 0 #dfd0bd;
    padding: 50px;
    border-radius: 30px;
}

.about-box p {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #604023;
    padding: 20px 10px;
    margin-bottom: 0;
}

.about-box span {
    font-size: 14px;
    width: 8em;
    padding: 0 10px;
    color: #9e8470;
}

.staff img {
    border-radius: 30px;
    margin-bottom: 0;
}

.home .eye-catch {
    display: none;
}

.eye-catch img,
.topslider,
.topslider img,
.product-img img,
.card-thumb img {
    border-radius: 30px;
}

.eye-catch img,
.topslider {
    box-shadow: 30px 30px 0 #dfd0bd;
}

.eye-catch img {
    margin-bottom: 60px;
}

.metaslider .flex-control-nav {
    border: 0;
    margin: auto;
    list-style: none;
    padding: 0;
    bottom: 20px !important;
    line-height: 11px;
    z-index: 2;
}

/* ========================================
   4. タイトル装飾 (Sections)
   ======================================== */

.article h3 {
    border: 0;
    padding: 0;
    font-size: 30px;
    font-weight: 600;
}

.tate {
    writing-mode: vertical-rl;
    font-size: 50px;
    letter-spacing: 0.1em;
}

.top-suki {
    position: relative;
    background-image: linear-gradient(to left, #fff 0%, #fff 50%, transparent 50%), url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/bk.svg");
    background-repeat: no-repeat;
    background-position: 200px bottom;
    background-size: 100vw auto, auto 228px;
    margin-bottom: 140px !important;
    height: 228px;
    margin-top: -60px;
}

.top-suki h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: none;
    padding: 50px 20px;
    line-height: 2;
}

.top-img img {
    margin: 120px auto 20px auto;
    z-index: 999 !important;
    position: sticky;
}

.section-title,
.section-title2,
.section-title3 {
    position: relative;
    margin-top: 100px !important;
    margin-bottom: 100px !important;
}

.section-title h2,
.section-title2 h2,
.section-title3 h2 {
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
}

.section-title {
    height: 40px;
    background-image: linear-gradient(to right, #604023 0%, #604023 50%, transparent 50%);
    background-size: 100vw 40px;
    background-repeat: no-repeat;
    background-position: center left;
    display: flex;
    align-items: center;
}

.section-title h2 {
    font-size: 30px;
    background: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/bk6.svg") no-repeat left center;
    background-size: auto 40px;
    padding: 10px 0 0 80px;
    width: 1000px;
}

.section-title span {
    font-size: 16px;
    font-weight: 600;
    color: #6a3e1e;
	letter-spacing: 0;
}

.section-title2 {
    height: 100px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right, #604023 50%, transparent 50%);
}

.section-title2 h2 {
    display: flex;
    align-items: center;
    margin: 0;
    height: 100%;
    font-size: 23px !important;
    color: #f0e7dd;
    background: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/blend-bk.svg") no-repeat left center / contain;
    line-height: 1;
}

.section-title3 {
    height: 100px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to left, #de6a42 50%, transparent 50%);
}

.section-title3 h2 {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 23px !important;
    color: #f0e7dd;
    background: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/kamo-bk.svg") no-repeat right center / contain;
    justify-content: flex-end;
    width: auto;
}

.section-title2 span,
.section-title3 span {
    font-size: 50px;
    font-weight: 600;
    color: #f0e7dd;
    margin-left: 20px;
}

/* ========================================
   5. 記事カード・リスト表示
   ======================================== */

.entry-card-title {
    font-weight: 600;
    display: none;
}

.widget-entry-cards .a-wrap {
    padding: 0;
}

.cat-label,
.card-content {
    display: none;
}

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

.ect-3-columns .entry-card-wrap {
    width: auto;
    padding: 0;
}

.widget-entry-cards.card-large-image .a-wrap,
.is-list-horizontal.large-thumb .widget-entry-card-link,
.is-list-horizontal.large-thumb-on .widget-entry-card-link {
    max-width: 310px;
}

/* ========================================
   6. フォーム (Contact Form 7)
   ======================================== */
input[type=submit]{
    padding: 20px;
    width: 100%;
    margin: 2em 0;
    cursor: pointer;
    border-radius: 5px;
}
.wpcf7 p {
    display: inline;
}

.wpcf7-form {
    font-weight: normal;
}

.wpcf7-radio {
    display: flex;
    flex-direction: column;
}

.wpcf7 textarea {
height: 20em;
    font-size: 14px;
    line-height: 1.6;
}

.wpcf7-submit {
    -webkit-appearance: none;
    border: 1px solid var(--cocoon-thin-color);
    background-color: #604023 !important;
    color: #eee !important;
}

.wpcf7-submit:hover {
    background-color: #836954 !important;
    color: #fff !important;
}

.wpcf7-list-item label {
    margin-left: -1.6em;
    padding: 0 10px;
}

.contact-rei {
    font-size: 14px;
    color: #9e8470;
    line-height: 1em !important;
    padding: 0 20px 20px 20px;
}

.contact-rei span {
    color: #999;
}

.b-kamo {
    float: right;
}

/* ========================================
   7. フッター
   ======================================== */

.entry-footer {
    margin-top: 140px;
}

.footer-right,
.footer-center {
    display: none;
}

#footer .wrap {
    width: 1040px;
    padding: 80px 0;
    letter-spacing: 0.1em;
}

.footer-menu {
    list-style: none;
    max-width: 300px;
    width: 300px;
}

.footer-menu li {
    position: relative;
}

.footer-menu li a::before {
    content: ">";
    position: absolute;
    left: 0;
    opacity: 0.8;
}

.footer-menu li a {
    position: relative;
    padding-left: 2em !important;
}

.footer-menu li a:hover {
    color: #fff !important;
    background: none !important;
}

/* ========================================
   8. レスポンシブデザイン
   ======================================== */

/* タブレット以下 (834px) */
@media screen and (max-width: 834px) {
    p,
    h2,
    h3,
    h4 {
        letter-spacing: 0.1em;
    }

    .sp-box {
        flex-direction: column-reverse;
    }

    .w-box {
        width: 100%;
    }

    .img-s img {
        width: 60%;
        margin: 0 20px 20px auto !important;
    }

    .img-m img {
        width: 85%;
        margin: 0 auto;
    }

    .alignwide {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: auto;
    }

    .tate {
        font-size: 26px;
        margin: 20px auto !important;
    }

    .product-img img,
    .topslider,
    .topslider img {
        border-radius: 20px;
    }

    .topslider {
        box-shadow: 20px 20px 0 #dfd0bd;
    }

    .product-img {
        display: flex;
    }

    .new-entry-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wp-block-gallery {
        gap: 20px;
    }
}

/* スマホ (480px以下) */
@media screen and (max-width: 480px) {
    .has-bottom-margin.is-style-bottom-margin-6em {
        margin-bottom: 3em !important;
    }

    p {
        word-break: break-word;
    }

    .no-sidebar .content .main {
        margin: 0;
        width: 100%;
        padding: 30px;
    }

    #footer .wrap {
        width: 100%;
        padding: 100px 0;
    }

    .p-big {
        font-size: 16px;
        line-height: 2em !important;
    }

    .p02box {
        padding: 100px 20px 20px 20px;
        border-radius: 20px;
        margin-top: -90px;
    }

    .p02box h3 {
        top: 30px;
        width: 180px;
        padding: 10px !important;
        font-size: 22px !important;
        background-size: auto 34px;
    }

    .top-suki {
        background-color: #fff;
        background-image: none;
        background-position: 5px bottom;
        background-size: auto 200px;
        margin-bottom: 40px !important;
        height: auto;
        margin-top: -40px;
    }

    .top-suki h2 {
        font-size: 20px;
        padding: 40px 10px 30px 10px;
        line-height: 1.6;
    }

    .section-title,
    .section-title2,
    .section-title3 {
        margin-top: 50px !important;
        margin-bottom: 60px !important;
    }

    .section-title2 h2,
    .section-title3 h2 {
        line-height: 1.6;
    }

    .section-title {
        background-image: none;
    }

    .section-title h2 {
        font-size: 22px;
        line-height: 1;
        background-size: auto 35px;
        padding: 0 0 0 80px;
        width: 100vw;
        height: 35px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title span {
        font-size: 14px;
        padding-top: 5px;
    }

    .section-title2,
    .section-title3 {
        display: none !important;
    }

    .sp-blend-title {
        font-size: 16px !important;
        display: block;
        line-height: 2.4em;
    }

    .sp-blend-title span {
        font-size: 36px !important;
        font-weight: 600 !important;
    }

    .sp-kamo-title {
        font-size: 16px !important;
        display: block;
        color: #de6a42;
        line-height: 2.4em;
    }

    .sp-kamo-title span {
        font-size: 32px !important;
        font-weight: 600 !important;
    }

    .about-box {
        box-shadow: 10px 10px 0 #dfd0bd;
        padding: 40px 20px;
        border-radius: 20px;
        margin: 10px 0;
    }

    .about-box span {
        flex: 0 0 4em;
        padding: 0;
    }

    .about-box p {
        padding: 10px;
    }

    .entry-content p {
        line-height: 1.8;
    }

    .staff {
        margin: 0 40px;
        gap: 50px;
    }

    .eye-catch img,
    .topslider {
        box-shadow: 10px 10px 0 #dfd0bd;
        border-radius: 20px;
    }

    .article h3 {
        font-size: 20px;
        margin: 50px 0 20px 0;
    }

    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    .alignright {
        float: none;
        margin: 0 auto;
    }

    .footer-menu {
        max-width: 400px;
        width: 100vw;
    }

    #footer .wrap {
        width: 100vw;
        padding: 50px 20px;
    }

    #footer img {
        width: 100%;
    }

    .header-container {
        padding: 0;
    }

    .wrap {
        width: auto;
        margin-top: 0;
    }

    .content {
        margin-top: 0;
    }

    .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 50px 0;
    }

    .p01box {
        padding: 20px;
        border-radius: 20px;
        margin: 50px 0 !important;
    }

    .p01box h3 {
        padding: 30px 0 !important;
        margin: 0 !important;
    }

    .p01box p {
        padding: 10px 0;
        text-align: left;
    }

    .p01box br {
        display: none;
    }

    .eye-catch img {
        margin-bottom: 30px;
    }

    .story-in {
        width: 100%;
    }

    .top-img img {
        width: 60%;
        margin: 0 auto;
    }

    .entry-footer {
        margin-top: 0;
    }

    .card-thumb img {
        border-radius: 20px;
    }

    .story-hito {
        margin-top: 0;
        z-index: 999;
        position: sticky;
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
        margin-right: 30px;
    }

    .story-hito img {
        margin-bottom: 0 !important;
    }

    .wpcf7-list-item-label::before,
    .wpcf7-list-item-label::after {
        content: none;
    }

    .single p {
        word-break: break-all;
    }

    .about-box a {
        padding-left: 1em;
        text-decoration: none;
    }

    .staff img {
        border-radius: 30px;
        margin-bottom: 0;
        padding: 10px;
    }}
@media screen and (max-width: 1023px) {
    /* モバイルメニュー関連 */
    .mobile-header-menu-buttons {
        top: 0;
        bottom: auto;
        justify-content: space-between;
        min-width: 46px;
        box-shadow: none;
    }

    .mobile-menu-buttons {
        background: none;
        display: flex;
        align-items: stretch;
        flex-direction: row-reverse;
    }

    #search-menu-open {
        display: none !important;
    }

    .navi-menu-caption {
        display: none !important;
    }

    .header-container-in.hlt-top-menu .logo-image {
        padding: 0;
        margin: 30px auto 0 auto;
        width: 80%;
    }

    .mobile-menu-buttons .menu-button {
        width: 100px;
        padding: 10px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0 !important;
    }

    .menu-content .menu-drawer {
        padding: 30px;
    }

    .menu-drawer li {
        display: block;
        margin-bottom: 20px;
        position: relative;
    }

    .menu-drawer li a::before {
        content: ">";
        position: absolute;
        left: 0;
        opacity: 0.8;
    }

    .menu-drawer li a {
        padding-left: 2em !important;
        color: #dfcfbc;
    }

    .menu-drawer li a:hover {
        color: #fff !important;
        background: none !important;
    }

    .body,
    .menu-content {
        font-size: 16px;
        background: #836954;
    }

    .mobile-footer-menu-buttons {
        background: #dfcfbc;
		flex-direction: row-reverse;
    }

    /* フッターモバイルボタンのカスタムアイコン（正しく表示させる） */
    #footer-mobile-buttons .menu-button:nth-child(1) .fa,
    #footer-mobile-buttons .menu-button:nth-child(1) .fas,
    .my-original-icon-p .fa,
    .my-original-icon-p .fas,
    .my-original-icon-d .fa,
    .my-original-icon-d .fas {
        display: none;
    }

    .mobile-menu-buttons .menu-icon {
        text-align: center;
        width: 100%;
        display: block;
        font-size: 19px;
        color: #604023;
    }

    .menu-button:nth-of-type(4) .fa-star:before {
        content: "";
        display: block;
        width: 22px;
        height: 18px;
        margin: 0 auto;
        background-image: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/icon-p.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .menu-button:nth-of-type(3) .fa-star:before {
        content: "";
        display: block;
        width: 22px;
        height: 18px;
        margin: 0 auto;
        background-image: url("https://miyoshi-kensetsu.jp/site/wp-content/uploads/2025/12/icon-d.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
@media (max-width: 768px) {
  .photo-row {
    flex-direction: column;
  }

  .photo-row img {
    height: 180px;
  }
}
}