/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   FINAL SP OVERRIDE: reason-image order
   ======================================== */
@media (max-width: 768px) {
    .reasons-grid .reason-image {
        order: 1 !important;
    }
}

body {
    font-family: 'M PLUS 1p', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Global layout variables */
:root {
    --content-max: 1200px;
    --cta-height: 0px;
    --header-height: 0px;
    --review-height: 0px;
    --kv-bottom-gap: 16px;
}

@media (max-width: 768px) {
    :root {
        --cta-height: 112px;
        --kv-bottom-gap: 12px;
    }
}

.container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.sp-only,
br.sp-only {
    display: none;
}

.section-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    text-align: center;
    margin-bottom: 60px;
}


/* ========================================
   HEADER SECTION
   ======================================== */
.header {
    /* position: sticky; */
    position: fixed;
    top: 0;
    /* background-color: #deecd8; */
    /* Light green for index page */
    min-height: 87px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    z-index: 1000;
}

/* Projects page specific header */
.post-type-archive .header {
    /* background-color: #c4e8f7; */
    /* Light blue for projects page */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 17px;
    min-height: 87px;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 52px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 40px;
}

.hamburger {
    display: none;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
    padding: 100px 20px;
    background-color: white;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.projects-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
    gap: 40px;
    justify-content: center;
    /* center the grid when fewer columns fit */
    justify-items: center;
    /* center items within tracks */
}

.project-card {
    background-color: #ffffff;
    border: 4px solid #000000;
    width: 312px;
    transition: transform 0.3s ease;
    text-shadow: rgba(255, 255, 255, 0.8) 2px 2px 2px;
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 21px;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 257px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
}

.project-description {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
}

/* Mobile Navigation */
@media (max-width: 768px) {

    /* Layout resets */
    .container {
        overflow-x: hidden;
    }

    .header {
        top: 0;
        z-index: 1200;
    }

    .header-content {
        min-height: unset;
        height: auto;
        gap: 8px;
        padding: 0 12px;
    }

    .logo,
    .custom-logo {
        width: auto;
        height: 40px;
    }

    /* Review Section */
    .review-section {
        padding: 10px 12px;
    }

    .review-content {
        gap: 10px;
    }

    .review-text-container {
        max-width: 60%;
        overflow: hidden;
        position: relative;
    }

    .rating-label {
        font-size: 10px;
    }

    .stars .star {
        width: 12px;
        height: 12px;
    }

    /* Top KV */
    .home .key-visual-section {
        background-color: #deecd8;
        background-image: url('../images/hero-background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        /* height: calc(100vh - var(--cta-height) - var(--header-height, 0px) - var(--review-height, 0px) - var(--kv-bottom-gap)); */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding: 0 20px;
        padding-bottom: calc(var(--cta-height) + var(--kv-bottom-gap));
    }

    .kv-illustration {
        position: static;
        max-width: 90vw;
        margin: 12px auto 0;
        z-index: 1;
    }

    .kv-illustration picture,
    .kv-illustration img {
        width: 100%;
        height: auto;
    }

    .key-visual-section .features-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .key-visual-section .feature-card {
        height: 86px;
    }

    /* Sections common */
    .section-header {
        gap: 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Why choose */
    .why-choose-content .section-title {
        font-size: 36px;
        line-height: 42px;
    }

    .section-badge {
        font-size: 16px;
        line-height: 18px;
    }

    .why-choose-content .section-subtitle {
        font-size: 24px;
        line-height: 26px;
    }

    .reasons-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reason-content {
        flex-direction: column;
        padding: 20px !important;
    }

    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .project-card {
        display: grid;
        gap: 12px;
        border: 2px solid #000000;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-title {
        font-size: 16px;
    }

    .project-description {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Project detail photos */
    .photos-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* Contact CTA sticky bar spacing on mobile (removed SP special sizing) */

    /* Footer */
    .footer .footer-content {
        padding: 24px 16px;
    }

    .footer-links {
        gap: 10px;
    }

    /* Mobile Navigation drawer */
    .hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1101;
    }

    .hamburger-line {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
        border-radius: 1px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1100;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 320px);
        background: #ffffff;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 80px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 1102;
    }

    .header .nav.open {
        transform: translateX(0);
    }

    .nav .nav-link {
        font-size: 18px;
        padding: 12px 0;
    }

    .header-content {
        height: 64px;
    }

    /* Overlay z-index and readability */
    .contact-cta-section {
        z-index: 1000;
    }

    .nav-overlay {
        z-index: 1100;
    }

    .header .nav {
        z-index: 1102;
    }

    .projects-btn,
    .campaign-btn,
    .reviews-btn,
    .submit-btn {
        min-height: 44px;
    }

    p {
        font-size: 16px;
        line-height: 1.8;
    }

    .section-title {
        margin-bottom: 8px;
    }

    .section-header {
        margin-bottom: 24px !important;
    }

    /* Campaign: prevent overflow */
    .campaign-content {
        padding: 0 12px;
    }

    .campaign-header {
        flex-direction: column;
        gap: 12px;
    }

    .campaign-text {
        width: 100%;
        max-width: 100%;
    }

    .campaign-title,
    .campaign-subtitle {
        width: 100%;
        display: block;
    }

    .campaign-title {
        font-size: 24px;
        line-height: 1.25;
    }

    .campaign-subtitle {
        font-size: 16px;
    }

    .home .campaign-section h3 {
        font-size: 14.5px !important;
    }

    .campaign-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .campaign-image {
        height: auto;
    }

    .campaign-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .campaign-btn {
        padding: 12px 25px;
        white-space: nowrap;
    }

    .campaign-icon {
        display: none;
    }

    /* Campaign hero: remove gap on SP */
    .campaign-section .hero-content {
        gap: 0;
    }

    /* Contact CTA SP special alignment removed */

    /* Contact CTA SP special layout removed */
}

/* ========================================
   MOBILE OVERRIDES (FINAL PASS)
   ======================================== */
@media (max-width: 768px) {

    /* 1) Hide mobile drawer fully when closed */
    .header .nav {
        visibility: hidden;
        pointer-events: none;
    }

    .header .nav.open {
        visibility: visible;
        pointer-events: auto;
    }

    /* 2) Fix hamburger to top-right on all pages */
    .hamburger {
        position: fixed;
        top: 12px;
        right: 12px;
    }

    /* 3) Smaller section titles and icons/images */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .section-icon {
        width: 48px;
        height: 48px;
    }

    .section-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hero-icon img {
        width: 90px;
        height: auto;
    }

    .related-carousel {
        width: 312px;
        margin: 0 auto;
        overflow: hidden;
    }

    .campaign-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .project-title {
        font-size: 18px;
    }

    /* 4) Customer reviews: show only one card */
    .customer-reviews-section .reviews-grid .review-card:nth-child(n+2) {
        display: none;
    }

    /* 5) Reasons: header(number+title) -> text -> image; only number has corner */
    .reasons-grid .reason-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "num title"
            "text text"
            "image image";
        align-items: start;
        gap: 8px 10px;
        /* default (1) */
        border-radius: 10px !important;
        padding: 12px;
    }

    .reasons-grid .reason-number {
        grid-area: num;
        background: #d98507;
        color: #ffffff;
        padding: 20px 10px;
        border-radius: 0 !important;
        font-size: 32px;
        line-height: 22px;
    }

    .reasons-grid .reason-item:nth-child(2) .reason-number {
        background: #c7bd00;
    }

    .reasons-grid .reason-item:nth-child(3) .reason-number {
        background: #1e6300;
    }

    .reasons-grid .reason-item:nth-child(4) .reason-number {
        background: #554835;
    }

    .reasons-grid .reason-number::after {
        display: none;
    }

    .reasons-grid .reason-text-wrapper {
        display: contents;
    }

    .reasons-grid .reason-title {
        grid-area: title;
        font-size: 20px !important;
        line-height: normal !important;
        color: #ffffff;
    }

    .reasons-grid .reason-text-wrapper p {
        grid-area: text;
        font-size: 14px;
        line-height: 1.8;
        color: #ffffff;
        margin: 0 0 6px;
    }

    .reasons-grid .reason-image {
        grid-area: image;
        width: 100%;
        height: auto;
        order: initial;
    }

    .reasons-grid .reason-image img {
        width: 100%;
        height: auto;
    }

    /* 6) home projects: show one card only */
    .home .projects-section .projects-grid .project-card:nth-child(n+2) {
        display: none;
    }

    /* 7) Force headings to a single line on mobile */
    /* .section-title,
    .section-subtitle,
    .hero-title,
    .hero-subtitle,
    .project-title,
    .campaign-title,
    .reason-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    } */

    /* Customer Reviews: widen content nicely */
    .customer-reviews-content {
        padding-left: 0;
        padding-right: 0;
    }

    .customer-reviews-section .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto 28px;
        /* add space above the "もっと見る" button */
    }

    .customer-reviews-section .review-card {
        padding: 16px;
    }

    .customer-reviews-section .customer-review-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Hide section icons on mobile */
    .section-icon {
        display: none;
    }

    /* Ensure campaign images stack vertically on mobile (override later desktop rule) */
    .campaign-images {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* .campaign-image { aspect-ratio: 1 / 1.41; } */
    .campaign-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Global heading size clamps on SP to reduce wrapping/overflow */
    .home section:not(.contact-cta-section) h2 {
        font-size: 23px;
    }

    /* Sp-only class visibility */
    /* Default (desktop): hide sp-only */
}

/* Mobile: show sp-only */
@media (max-width: 768px) {

    .sp-only,
    br.sp-only {
        display: block !important;
    }
}

/* ========================================
   FINAL SP OVERRIDE: CTA main text size
   ======================================== */
@media (max-width: 768px) {
    .contact-cta-main-text h2 {
        font-size: 15px !important;
    }
}

/* ========================================
   FINAL SP OVERRIDE: CTA buttons margin
   ======================================== */
@media (max-width: 768px) {
    .contact-cta-buttons {
        margin-top: 0 !important;
    }
}

.nav-link {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

/* ========================================
   REVIEW SECTION
   ======================================== */

/* ========================================
   FINAL MOBILE OVERRIDES (CTA PRIORITY)
   ======================================== */
@media (max-width: 768px) {

    /* Strengthen selector with container to win cascade without !important */
    .container .contact-cta-section {
        height: auto;
    }

    .container .contact-cta-bottom {
        height: auto;
    }

    .container .contact-cta-content {
        grid-template-columns: auto 1fr 60px;
        gap: 6px;
        padding: 0 8px;
    }

    .container .contact-cta-cat {
        width: 40px;
        height: 40px;
    }

    .container .contact-cta-phone i,
    .container .contact-cta-phone span {
        font-size: 20px;
    }

    .container .contact-cta-phone span {
        position: relative;
        margin-bottom: 12px;
    }

    .container .contact-cta-phone span::after {
        content: "営業時間 8:00~20:00";
        position: absolute;
        bottom: -12px;
        left: 0;
        font-size: 11px;
        font-weight: 500;
    }

    .container .contact-cta-buttons {
        width: 40px;
        margin-right: 40px;
        margin-left: 40px;
    }

    .container .contact-btn {
        width: 40px;
        height: 40px;
        margin-top: -25px;
    }

    .container .contact-btn span {
        display: none;
    }

    .container .contact-cta-top {
        padding-left: 0;
        transform: translateY(-100%);
        top: 0px;
    }

    .container .contact-btn img {
        width: 30px;
        height: 30px;
    }

    /* 上部テキスト: オレンジ + 白縁取り */
    .contact-cta-main-text h2 {
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 15px;
        color: #d98507;
        text-shadow:
            1px 1px 0 #ffffff,
            -1px 1px 0 #ffffff,
            1px -1px 0 #ffffff,
            -1px -1px 0 #ffffff,
            1px 0 0 #ffffff,
            -1px 0 0 #ffffff,
            0 1px 0 #ffffff,
            0 -1px 0 #ffffff;
        letter-spacing: 0.5px;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
        padding: 8px 0;
    }

    .wpcf7-form .form-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .wpcf7-form .form-label {
        width: 100%;
        margin-bottom: 6px;
        text-align: left;
    }

    .wpcf7-form .form-input,
    .wpcf7-form .form-select,
    .wpcf7-form .form-textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* オレンジバー: 高さauto、18px角丸 */
    .contact-cta-bottom {
        position: relative;
        width: 100%;
        height: auto;
        background-color: #d98507;
    }

    /* メインコンテンツ: 3カラムレイアウト */
    .contact-cta-content {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr 60px;
        align-items: center;
        height: 100%;
        padding: 0 12px;
        gap: 8px;
    }

    /* 猫アイコン: 40x40px */
    .contact-cta-cat {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .contact-cta-cat img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 電話エリア: フレックス拡張 */
    .contact-cta-phone {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        min-width: 0;
    }

    /* 電話アイコン: 20px */
    .contact-cta-phone i {
        font-size: 20px;
        color: #ffffff;
        flex-shrink: 0;
    }

    /* 電話番号: 20px */
    .contact-cta-phone span {
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 20px;
        color: #ffffff;
        letter-spacing: 0.2px;
        line-height: 1;
        white-space: nowrap;
    }

    /* 営業時間: SP版では非表示 */
    .contact-cta-hours,
    .hours-row,
    .hours-note {
        display: none !important;
    }

    /* ボタン列: 30px幅、縦並び */
    .contact-cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
        width: 30px;
        margin-left: 12px;
        margin-top: 0;
    }

    /* ボタン共通: 30x30px円形 */
    .contact-btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: none;
    }

    /* ボタンテキスト非表示 */
    .contact-btn span {
        display: none !important;
    }

    /* ボタンアイコン: 16px */
    .contact-btn i,
    .contact-btn img {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    /* LINEボタン: 緑背景 + 白ロゴ */
    .line-btn {
        background-color: #06c755;
        color: #ffffff;
    }

    .line-btn:hover {
        background-color: #05b04a;
    }

    /* メールボタン: 白背景 + オレンジロゴ */
    .mail-btn {
        background-color: #ffffff;
        color: #d98507;
    }

    .mail-btn:hover {
        background-color: #f5f5f5;
    }
}

.review-section {
    background-color: #ffffff;
    height: auto;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.review-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: var(--content-max);
}

.review-icon {
    width: 94.476px;
    height: 31px;
    object-fit: contain;
}

.review-text-container {
    flex: 1;
    overflow: hidden;
    margin: 0 20px;
    position: relative;
}

.header-review-text {
    display: inline-block;
    animation: scroll-text 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.header-review-text {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #000000;
    letter-spacing: 0.6px;
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
}

.header-review-text.fade {
    opacity: 0;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.rating-label {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    letter-spacing: 0.8px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #deecd8;
    /* Light green for index page */
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

/* Projects page specific hero section */
.post-type-archive .hero-section {
    background-color: #c4e8f7;
    /* Light blue for projects page */
}

/* Ensure all hero sections use the same flex layout as KV */
.hero-section .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 0;
    max-width: var(--content-max);
    margin: 0 auto;
    margin-bottom: 60px;
}

/* ========================================
   PROJECT DETAIL PAGE STYLES
   ======================================== */

/* Project detail page specific header */
.single-project .header {
    /* background-color: #c4e8f7; */
    /* Light blue for project detail page */
}

/* Main Visual Section */
.main-visual-section {
    background-color: #c4e8f7;
    padding: 60px 20px 0;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.main-visual-content {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Project Details Section */
.project-details-section {
    background-color: #ddd;
    padding: 100px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.project-details-content {
    max-width: var(--content-max);
    margin: 0 auto;
    background-color: #ffffff;
    border: 4px solid #000000;
    padding: 40px;
}

@media (max-width: 768px) {
    .project-details-content {
        border: 2px solid #000000;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Before After Images */
.before-after-images {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.before-image,
.after-image {
    position: relative;
    width: 448px;
    height: 448px;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop (PC): horizontal before/after */
@media (min-width: 769px) {
    .before-after-images {
        flex-direction: row;
    }
}

.before-label,
.after-label {
    position: absolute;
    bottom: 16px;
    left: -10px;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
}

.before-label {
    background-color: #d98507;
}

.after-label {
    background-color: #1e6300;
}

/* Consultation Section */
.consultation-content {
    margin: 60px 0 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.consultation-content .section-header {
    margin-bottom: 30px;
}

.section-icon {
    width: 70px;
    height: 105px;
}

.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.consultation-content .section-title {
    margin-bottom: 0;
}

.consultation-text {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    max-width: 989px;
    text-align: center;
    margin: 0 auto;
}

/* Construction Overview Section */
.construction-overview-content {
    margin-top: 80px;
    margin-bottom: 80px;
}

.construction-overview-content .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    gap: 5px;
}

.section-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1e6300;
    margin-bottom: 5px;
}

.overview-table {
    background-color: #fff4e4;
    padding: 30px;
    max-width: 1032px;
    margin: 0 auto;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #dee1e6;
    padding: 30px 0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    width: 246px;
    flex-shrink: 0;
    padding-left: 23px;
}

.table-value {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    flex: 1;
    padding-left: 23px;
}

.table-value p {
    margin: 0 0 10px 0;
}

.table-value p:last-child {
    margin-bottom: 0;
}

/* Photos Section */
.photos-content {
    margin-bottom: 0;
}

.photos-content .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    gap: 5px;
}

.photos-content .section-subtitle {
    color: #d98507;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-item {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SP layout: photos grid 1 column, 4:3 images */
@media (max-width: 768px) {
    .project-detail-page .photos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-page .photo-item {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .project-detail-page .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Related Projects Section */
.related-projects-section {
    background-color: white;
    padding: 80px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.related-projects-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.related-projects-content .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-project-card {
    background-color: #ffffff;
    border: 4px solid #000000;
    padding: 21px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-project-card .project-image {
    width: 100%;
    height: 200px;
}

.related-project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-project-card .project-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.related-project-card .project-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
}

.related-project-card .project-description {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

.key-visual-section .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 0;
    max-width: var(--content-max);
    margin: 0 auto;
    margin-bottom: 60px;
}

.hero-icon {
    display: none;
    flex: 0 0 auto;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-text {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
    margin: 0;
}

.hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    margin: 0;
}

/* ========================================
   ABOUT US SECTION
   ======================================== */
.about-area__group {
    background-image: url("../images/about-image.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.common-1200-width {
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 40px);
}

.about-items__block {
    display: flex;
}

.about-items__text {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.6);
    padding: 112px 20px;
}

.about-items__text ._title {
    margin-bottom: 46px;
}

.about-items__text ._title span {
    font-family: 'Viga', sans-serif;
    display: block;
    font-size: 70px;
    line-height: 1;
    text-transform: uppercase;
}

.about-items__text ._title h2 {
    font-size: 18px;
    font-weight: 600;
}

.about-items__text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    max-width: 560px;
}

.about-items__image {
    display: none;
}

.about-items__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 941px) {
    .about-area__group {
        background-image: none;
        padding: 80px 0;
        margin-bottom: 60px;
    }

    .about-items__image {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 2;
        margin-top: 24px;
    }

    .about-items__text {
        max-width: 100%;
        padding: 0;
        margin-bottom: 32px;
    }

    .about-items__text ._title {
        margin-bottom: 32px;
    }

    .about-items__text ._title span {
        font-size: 50px;
    }

    .about-items__text ._title h2 {
        font-size: 16px;
    }

    .about-items__text h3 {
        font-size: 24px;
        margin-bottom: 16px;
        max-width: 100%;
    }
}

@media screen and (max-width: 426px) {
    .about-items__text h3 {
        font-size: 22px;
        margin-bottom: 16px;
        max-width: 100%;
    }
}

/* ========================================
   SERVICE SECTION
   ======================================== */
.service-section {
    background-color: white;
    padding: 80px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.service-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Service header using hero-content structure */
.service-content .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.service-content .hero-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.service-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-content .hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    line-height: 68px;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.service-image {
    width: 312px;
    width: 100%;
    height: 208px;
    height: auto;
    aspect-ratio: 312/208;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item:nth-child(3) .service-image img {
    object-position: top;
}

.service-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.service-title span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-top: 4px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .service-image {
        width: 100%;
        max-width: 312px;
        height: 208px;
    }

    .service-title {
        font-size: 16px;
    }

    .service-title span {
        font-size: 12px;
    }
}

.service-area__group {
    background-color: #deecd8;
    padding: 80px 0;
}

/* ========================================
   CEO MESSAGE SECTION
   ======================================== */
.ceo-section {
    padding: 100px 20px;
    width: 100%;
    margin: 0 auto;
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.ceo-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
    max-width: var(--content-max);
    margin: 0 auto;
}

.ceo-image {
    flex: 0 0 385px;
    margin-left: 40px;
}

.ceo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-text {
    flex: 1;
}

.ceo-header {
    position: relative;
    margin-bottom: 30px;
}

.ceo-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    text-shadow: rgba(255, 255, 255, 0.8) 2px 2px 2px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.ceo-line {
    width: 380px;
    height: 23px;
    background-color: #2d5016;
    position: absolute;
    bottom: -5px;
    left: 0;
    z-index: 1;
}

.ceo-info {
    margin-bottom: 30px;
}

.ceo-position {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    margin-bottom: 5px;
}

.ceo-name {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
}

.ceo-message {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #000000;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .ceo-section {
        padding-bottom: 0;
    }

    .ceo-title {
        font-size: 28px;
    }

    .ceo-name {
        font-size: 26px;
    }
}

/* ========================================
   COMPANY DETAILS SECTION
   ======================================== */
.company-details-section {
    padding: 80px 20px;
    width: 100%;
    margin: 0 auto;
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

/* Constrain the title width inside the green section */
.company-details-section .section-title {
    max-width: var(--content-max);
    margin: 0 auto 60px;
}

.company-details {
    background-color: #ffffff;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 916px;
    margin: 0 auto;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
}

.detail-value {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #000000;
}

@media (max-width: 768px) {
    .detail-label {
        font-size: 16px;
    }

    .detail-value {
        font-size: 16px;
    }
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: 80px 20px;
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.gallery-section .section-title {
    max-width: var(--content-max);
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.gallery-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-box {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    padding: 40px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.filter-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.filter-select-control {
    display: none;
}

@media (max-width: 768px) {
    .filter-select-control {
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 16px auto 0;
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid #dee1e6;
        background: #ffffff;
        font-family: 'M PLUS 1p', sans-serif;
        font-weight: 700;
        font-size: 16px;
        color: #323842;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: #ffffff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid gray;
    background: transparent;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #323842;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn.active {
    background-color: #d98507;
    color: #ffffff;
}

.filter-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12.5px;
    bottom: 12.5px;
    width: 1px;
    background-color: #dee1e6;
}

/* ========================================
   TOP PAGE STYLES
   ======================================== */
.home .header {
    background-color: transparent;
}

.home .container {
    background-size: cover, cover;
    background-position: top center, top center;
    background-repeat: no-repeat, no-repeat;
}

.home .key-visual-section {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Hero Swiper Styles */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(196, 232, 247, 0.5);
    z-index: 5;
}

.hero-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide-active .slide-image img,
.swiper-slide-duplicate-active .slide-image img,
.swiper-slide-prev .slide-image img {
    animation: zoomUp 7.5s linear 0s normal both;
}

@keyframes zoomUp {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* Catch Copy Styles */
.catch-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    aspect-ratio: 195 / 60;
    mix-blend-mode: difference;
    z-index: 10;
}

.catch-title img.key-visual-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .catch-title {
        width: 300px;
        ;
    }
}

/* Contact CTA Section */
.contact-cta-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1000;
}

/* 上部：透明背景部分（メインテキスト用） */
.contact-cta-top {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    padding-left: 12%;
}

.contact-cta-main-text h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 32px);
    color: #d98507;
    text-shadow:
        2px 2px 0 #ffffff,
        -2px 2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px 0 0 #ffffff,
        -2px 0 0 #ffffff,
        0 2px 0 #ffffff,
        0 -2px 0 #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
}

/* Campaign Section */
.campaign-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.campaign-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Unify campaign header with section-header structure */
.campaign-hero {
    gap: 40px;
    margin-bottom: 60px;
}

.campaign-icon {
    width: 76px;
    height: 114px;
    flex-shrink: 0;
}

.campaign-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.campaign-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campaign-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #c4e8f7;
    margin-bottom: 0;
    text-align: center;
}

.campaign-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    line-height: 68px;
}

.campaign-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.campaign-image {
    width: 100%;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-cta {
    text-align: center;
}

.campaign-btn {
    display: inline-block;
    background-color: #d98507;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.campaign-btn:hover {
    background-color: #b87300;
}

/* Customer Reviews Section */
.customer-reviews-section {
    padding: 80px 20px;
    background-color: #f5f5dc;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    overflow: hidden;
}

.customer-reviews-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* Customer Reviews header using hero-content */
.customer-reviews-content .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.customer-reviews-content .hero-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.customer-reviews-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-reviews-content .hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    line-height: 68px;
    margin-bottom: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.2vw, 15px);
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: clamp(8px, 1.2vw, 15px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 10px);
    min-height: 160px;
    height: 100%;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.google-logo {
    font-size: clamp(16px, 2vw, 18px);
    color: #4285f4;
    flex-shrink: 0;
}

.review-avatar {
    width: clamp(35px, 4vw, 40px);
    height: clamp(35px, 4vw, 40px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-stars {
    display: flex;
    gap: clamp(2px, 0.3vw, 4px);
    justify-content: flex-start;
    margin-bottom: clamp(8px, 1vw, 12px);
}

.review-stars i {
    color: #ffd700;
    font-size: clamp(14px, 1.8vw, 16px);
}

.customer-review-text {
    flex: 1;
    overflow: visible;
    word-break: break-word;
}

.customer-review-text p {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: clamp(10px, 1vw, 12px);
    color: #000000;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
}



.reviews-cta {
    text-align: center;
}

.reviews-btn {
    display: inline-block;
    background-color: #d98507;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.reviews-btn:hover {
    background-color: #b87300;
}

/* Projects Section for Top Page */
.home .projects-section {
    background-color: #c4e8f7;
}

.home .projects-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Remove top padding on the top page projects section itself */
.home .projects-section {
    padding-top: 0;
}

/* Projects: PC version using hero-content structure */
.home .projects-content .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.home .projects-content .hero-icon {
    width: 147px;
    height: 98px;
    flex-shrink: 0;
}

.home .projects-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home .projects-content .hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    justify-items: center;
}



/* ========================================
   COMPANY PAGE STYLES
   ======================================== */
.page-template-page-company .header {
    /* background-color: #deecd8; */
}

.page-template-page-company .hero-section {
    background-color: #deecd8;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.page-template-page-contact .header {
    /* background-color: #fff4e4; */
}

.page-template-page-contact .hero-section {
    background-color: #fff4e4;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #fff4e4;
    padding: 100px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.contact-form-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    margin-bottom: 60px;
}

.contact-description p {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    line-height: 30px;
    margin-bottom: 20px;
}

.wpcf7-form {
    max-width: 880px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 273px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 38px;
    position: relative;
}

.form-label {
    display: flex;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #555555;
    /* padding-top: 10px; */
    position: relative;
    align-items: center;
}

.required {
    background-color: #d98507;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 130px;
}

.form-input,
.form-select {
    width: 100%;
    height: 42px;
    border: 1px solid #808080;
    border-radius: 2px;
    padding: 0 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #c1c1c1;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-textarea {
    width: 100%;
    height: 117px;
    border: 1px solid #808080;
    border-radius: 2px;
    padding: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    resize: vertical;
    box-sizing: border-box;
}

.form-submit {
    text-align: center;
    margin-top: 60px;
}

.submit-btn {
    background-color: #d98507;
    color: #ffffff;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 40px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #b87300;
}

.wpcf7 form .wpcf7-response-output {
    border: none;
    text-align: center;
}

.wpcf7-spinner {
    display: none;
}

/* ========================================
   NAVIGATION ACTIVE STATE
   ======================================== */
.nav-link.active {
    color: #d98507;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #d98507;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* Unified horizontal padding for section content wrappers on desktop */
section>[class$="-content"]:not(.contact-cta-content) {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .background {
        width: 100%;
    }

    .ceo-content {
        flex-direction: column;
        align-items: center;
    }

    .ceo-image {
        flex: none;
        width: 100%;
        max-width: 385px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   COMPANY GALLERY (PAGE-SCOPED OVERRIDES)
   Ensures gallery reflects on company.html even if earlier rules conflict
   ======================================== */
.page-template-page-company .company-gallery-section {
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    padding: 80px 20px;
}

.page-template-page-company .company-gallery-section .section-title {
    max-width: var(--content-max);
    margin: 0 auto 60px;
    text-align: center;
}

.page-template-page-company .company-gallery-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.page-template-page-company .company-gallery-box {
    border-radius: 20px;
    padding: 40px;
}

.page-template-page-company .company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.page-template-page-company .company-gallery-grid .gallery-item {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
}

.page-template-page-company .company-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-template-page-company .company-gallery-box {
        padding: 20px;
    }

    .page-template-page-company .company-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hamburger {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10000;
    }

    /* Review bar: ensure rating stays inside white area on mobile */
    .review-section {
        height: auto;
        padding: 8px 12px;
        min-height: 40px;
        align-items: center;
    }

    .review-content {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left;
    }

    .review-rating {
        gap: 4px;
        flex-shrink: 0;
        align-items: center;
    }

    .rating-label {
        display: none;
    }

    .stars .star {
        width: 12px;
        height: 12px;
    }

    .review-icon {
        width: auto !important;
        height: 20px;
        max-height: 20px;
        flex-shrink: 0;
    }

    /* SP版でもreview-textを自動再生 */
    .review-text-container {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        margin: 0 8px;
        position: relative;
    }

    .header-review-text {
        display: inline-block;
        animation: scroll-text 20s linear infinite;
        white-space: nowrap;
    }


    .ceo-line {
        width: 100%;
        max-width: 380px;
    }

    /* Center CEO image on SP */
    .ceo-section .ceo-image {
        margin: 0 auto;
        margin-left: 0;
    }

    .company-details {
        padding: 30px;
    }

    /* Unified horizontal padding for section content wrappers on mobile */
    section>[class$="-content"]:not(.contact-cta-content) {
        padding-left: 0px;
        padding-right: 0px;
    }

    /* Ensure campaign button padding on mobile overrides desktop */
    .campaign-btn {
        padding: 12px 25px;
        white-space: nowrap;
    }

    /* Project detail: prevent titles from overflowing content block */
    .single-project .section-title {
        font-size: 24px;
        line-height: 1.3;
        white-space: normal;
        margin-bottom: 12px;
    }

    .single-project .section-subtitle {
        font-size: 14px;
        line-height: 1.3;
        white-space: normal;
    }

    /* Filter: show select on SP, hide buttons */
    .filter-buttons {
        display: none;
    }

    /* Contact form: stack label and input, make labels smaller */
    .wpcf7-form {
        max-width: 100%;
    }

    .form-row {
        display: block;
        grid-template-columns: none;
        gap: 8px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
        padding-top: 0;
        position: static;
        display: inline-flex;
        align-items: center;
    }

    .required {
        font-size: 9px;
        padding: 1px 6px;
        margin-left: 8px;
        position: static;
        top: auto;
        left: auto;
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
    }

    /* Project detail: ensure before/after images fit inside dashed box */
    .before-after-images {
        flex-direction: column;
        gap: 20px;
    }

    .before-image,
    .after-image {
        width: 100%;
        max-width: 448px;
        height: auto;
    }

    .before-image img,
    .after-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .before-label,
    .after-label {
        font-size: 18px;
        padding: 8px 16px;
        bottom: 8px;
        left: 0;
    }

    /* Hero-like sections: image left, text right; fit and center group on SP */
    .hero-content,
    .main-visual-content,
    .key-visual-section .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 14px;
        text-align: left;
    }

    .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 0 1 auto;
        min-width: 0;
    }

    .hero-subtitle,
    .hero-title {
        width: auto;
        max-width: 100%;
        display: inline-block;
    }

    .hero-subtitle {
        font-size: clamp(14px, 4.2vw, 18px);
        line-height: 1.3;
    }

    .hero-title {
        font-size: clamp(20px, 5.2vw, 26px);
        line-height: 1.25;
    }
}

/* ========================================
   MOBILE OVERRIDES (scoped, EOF for precedence)
   ======================================== */
@media (max-width: 768px) {

    /* Project detail page */
    .project-detail-page .project-details-content {
        padding: 40px 20px;
    }

    .project-detail-page .photos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-page .photo-item {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .project-detail-page .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Force hero icon + text to stay on one row on SP (override any column rules) */
.hero-content {
    flex-direction: row !important;
    flex-wrap: nowrap;
    text-align: left !important;
}

.hero-icon {
    flex: 0 0 auto;
}

.hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Campaign hero on top page should match campaign-section background */
.campaign-hero-section {
    background-color: #ffffff;
}

/* Desktop: don't wrap hero titles */
@media (min-width: 769px) {
    .hero-title {
        white-space: nowrap;
    }
}

/* Hero subtitle colors per page (aligned to design palette) */
.home .hero-subtitle {
    color: #1e6300;
}

.page-template-page-company .hero-subtitle {
    color: #1e6300;
}

.post-type-archive .hero-subtitle {
    color: #000000;
}

.single-project .hero-subtitle {
    color: #1e6300;
}

.page-template-page-contact .hero-subtitle {
    color: #d98507;
}

.campaign-hero-section .hero-subtitle {
    color: #c4e8f7;
}

/* Final mobile override to ensure icon left / text right on every hero */
@media (max-width: 768px) {
    .hero-section .hero-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .hero-section .hero-icon {
        flex: 0 0 auto;
    }

    .hero-section .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .hero-section .hero-text {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        text-align: left !important;
    }

    /* Why Choose: enforce row layout and tidy text stack */
    .why-choose-section .hero-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .why-choose-section .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .why-choose-section .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Unified hero header (apply to all hero-content) */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 0;
    max-width: var(--content-max);
    margin: 0 auto 60px;
}

.hero-content .hero-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.hero-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add mobile carousel behavior for related-projects */
@media (max-width: 768px) {

    /* One card at a time, centered */
    .related-projects-grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* center the visible card like projects.html (312px card) */
        padding: 0;
        scroll-padding: calc((100vw - 312px) / 2);
    }

    .related-projects-grid>* {
        scroll-snap-align: center;
    }

    /* Match card size to projects.html */
    .related-project-card {
        border: 2px solid #000000;
        flex: 0 0 312px;
        width: 312px;
        margin: 0;
        box-sizing: border-box;
    }
}

/* ========================================
   RESPONSIVE FIXES (PAGE-SCOPED)
   ======================================== */
@media (max-width: 768px) {

    /* Project detail: overview table single-column (label over value) */
    .single-project .overview-table {
        padding: 20px;
    }

    .single-project .overview-table .table-row {
        display: block;
        padding: 16px 0;
    }

    .single-project .overview-table .table-label {
        width: 100%;
        padding-left: 0;
        margin-bottom: 6px;
    }

    .single-project .overview-table .table-value {
        padding-left: 0;
    }
}

/* KV illustration in normal flow, centered */
.kv-illustration {
    position: static;
    width: 100%;
    max-width: 1200px;
    margin: 12px auto 16px;
    z-index: 1;
}

.kv-illustration picture,
.kv-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {

    /* Desktop: show 3 features at once (grid), no carousel */
    .key-visual-section .features-content {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
        overflow: visible;
        scroll-snap-type: none;
    }

    .key-visual-section .features-content .feature-card {
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) {
    .home .container {
        background-size: initial;
        background-position: top center, top center;
        background-repeat: no-repeat, no-repeat;
    }
}

/* Top page projects: show 2 centered cards on medium viewports */
@media (min-width: 769px) and (max-width: 1200px) {
    .home .projects-grid {
        grid-template-columns: repeat(2, minmax(312px, 1fr));
        justify-content: center;
        justify-items: center;
    }

    .home .projects-grid .project-card:nth-child(n+3) {
        display: none;
    }
}

/* Desktop: pull footer-links slightly left by giving it a right gutter equal to logo width */
@media (min-width: 1201px) {
    .footer-links {
        margin-right: 200px;
    }
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: 80px 20px;
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.gallery-section .section-title {
    max-width: var(--content-max);
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.gallery-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-box {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer {
    color: white;
    background-color: #222;
    padding: 40px 20px 100px;
    border-top: 1px solid #dee1e6;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: var(--content-max);
}

.footer-logo {
    flex: 0 0 200px;
}

.footer-logo-img {
    height: 121px;
    object-fit: contain;
}

.footer-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.contact-item span {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-link {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #666;
}

.footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #dee1e6;
    margin-top: 40px;
}

.footer-copyright p {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: white;
    line-height: 22px;
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    padding: 40px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.filter-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contact CTA Section */
.contact-cta-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1000;
}

/* 上部：透明背景部分（メインテキスト用） */
.contact-cta-top {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    padding-left: 12%;
}

.contact-cta-main-text h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 32px);
    color: #d98507;
    text-shadow:
        2px 2px 0 #ffffff,
        -2px 2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px 0 0 #ffffff,
        -2px 0 0 #ffffff,
        0 2px 0 #ffffff,
        0 -2px 0 #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
}

/* 下部：オレンジ背景部分 */
.contact-cta-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #d98507;
}

.contact-cta-content {
    position: relative;
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 60px);
    /* padding: 0 clamp(10px, 2vw, 40px); */
    /* padding: 0 clamp(80px, 12vw, 200px); */
    margin: 0 auto;
}

/* 電話番号部分 */
.contact-cta-phone {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    white-space: nowrap;
    text-decoration: none;
}

.contact-cta-phone i {
    font-size: clamp(24px, 3vw, 48px);
    color: #ffffff;
}

.contact-cta-phone span {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 48px);
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

/* 営業時間部分 */
.contact-cta-hours {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.5vw, 8px);
    white-space: nowrap;
}

.hours-row {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
}

.hours-label,
.hours-time {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 24px);
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
}

.hours-note {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 8px);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(10px, 1vw, 16px);
    color: #ffffff;
    line-height: 1;
}

.hours-note i {
    font-size: clamp(12px, 1.2vw, 18px);
    color: #ffeb3b;
}

/* CTAボタン */
.contact-cta-buttons {
    display: flex;
    flex-direction: row;
    gap: clamp(8px, 1vw, 20px);
    margin-top: -30px
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
    padding: clamp(8px, 1vw, 15px) clamp(12px, 1.5vw, 25px);
    text-decoration: none;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1.2vw, 18px);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.line-btn {
    background-color: #06c755;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.mail-btn {
    background-color: #ffffff;
    color: #d98507;
    border: 2px solid #d98507;
}

.contact-btn img {
    width: clamp(14px, 1.5vw, 24px);
    height: clamp(14px, 1.5vw, 24px);
}

/* 猫のアイコン */
.contact-cta-cat {
    position: static;
    width: clamp(100px, 8vw, 140px);
    height: clamp(100px, 8vw, 140px);
    flex: 0 0 auto;
}

.contact-cta-cat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Campaign Section */
.campaign-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.campaign-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Unify campaign header with section-header structure */
.campaign-hero {
    gap: 40px;
    margin-bottom: 60px;
}

.campaign-icon {
    width: 76px;
    height: 114px;
    flex-shrink: 0;
}

.campaign-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.campaign-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campaign-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #c4e8f7;
    margin-bottom: 0;
    text-align: center;
}

.campaign-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    line-height: 68px;
}

.campaign-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.campaign-image {
    width: 100%;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-cta {
    text-align: center;
}

.campaign-btn {
    display: inline-block;
    background-color: #d98507;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.campaign-btn:hover {
    background-color: #b87300;
}

/* Customer Reviews Section */
.customer-reviews-section {
    padding: 80px 20px;
    background-color: #f5f5dc;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    overflow: hidden;
}

.customer-reviews-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* Customer Reviews header using hero-content */
.customer-reviews-content .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.customer-reviews-content .hero-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.customer-reviews-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-reviews-content .hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #000000;
    line-height: 68px;
    margin-bottom: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.2vw, 15px);
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: clamp(8px, 1.2vw, 15px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 10px);
    min-height: 160px;
    height: 100%;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.google-logo {
    font-size: clamp(16px, 2vw, 18px);
    color: #4285f4;
    flex-shrink: 0;
}

.review-avatar {
    width: clamp(35px, 4vw, 40px);
    height: clamp(35px, 4vw, 40px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-stars {
    display: flex;
    gap: clamp(2px, 0.3vw, 4px);
    justify-content: flex-start;
    margin-bottom: clamp(8px, 1vw, 12px);
}

.review-stars i {
    color: #ffd700;
    font-size: clamp(14px, 1.8vw, 16px);
}

.customer-review-text {
    flex: 1;
    overflow: visible;
    word-break: break-word;
}

.customer-review-text p {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: clamp(10px, 1vw, 12px);
    color: #000000;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
}



.reviews-cta {
    text-align: center;
}

.reviews-btn {
    display: inline-block;
    background-color: #d98507;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.reviews-btn:hover {
    background-color: #b87300;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background-color: #ddd;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.why-choose-content {
    /* max-width: var(--content-max); */
    margin: 0 auto;
}

/* Why Choose: PC version using hero-content structure */
.why-choose-content .hero-content.why-choose-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.why-choose-content .hero-text.why-choose-text {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.title-with-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    margin: 0;
    gap: 2px;
}

.why-choose-content .hero-title.why-choose-main-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #000000;
    line-height: 58px;
    margin: 0;
}

.section-badge {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1e6300;
    background-color: transparent;
    margin: 0;
    padding: 0;
    line-height: 22px;
}

.why-choose-content .hero-subtitle.why-choose-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: #000000;
    line-height: 36px;
    margin: 0;
}

.reasons-grid {
    margin-top: 60px;
}

.reason-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background-color: #d98507;
    border-radius: 20px;
    overflow: hidden;
    min-height: 164px;
    position: relative;
}

.reason-item:nth-child(1) {
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
}

.reason-item:nth-child(2) {
    background-color: #c7bd00;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
}

.reason-item:nth-child(3) {
    background-color: #1e6300;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
}

.reason-item:nth-child(4) {
    background-color: #554835;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
}

.reason-item:nth-child(3) {
    background-color: #1e6300;
}

.reason-item:nth-child(4) {
    background-color: #554835;
}

.reason-number {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 80px;
    color: #ffffff;
    padding: 0 40px;
    flex-shrink: 0;
    position: relative;
}

.reason-number::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 2px;
    height: 136px;
    background: repeating-linear-gradient(to bottom,
            #ffffff 0px,
            #ffffff 4px,
            transparent 4px,
            transparent 8px);
    transform: translateY(-50%);
}

.reason-item:nth-child(1) .reason-image,
.reason-item:nth-child(3) .reason-image {
    border-radius: 0 0 50px 0;
}

.reason-item:nth-child(2) .reason-image,
.reason-item:nth-child(4) .reason-image {
    border-radius: 0 0 0 50px;
}

.reason-item:nth-child(2) .reason-number::after,
.reason-item:nth-child(4) .reason-number::after {
    right: auto;
    left: -20px;
}

.reason-item:nth-child(2) .reason-image,
.reason-item:nth-child(4) .reason-image {
    order: 1;
}



.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reason-text-wrapper {
    flex: 1;
    order: 2;
}

.reason-title {
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #ffffff;
    line-height: 1.2;
    z-index: 0;
}

.reasons-grid .reason-item .reason-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: -1;
}

.reasons-grid .reason-item .reason-title::after {
    background-color: #d98507;
}

.reason-text-wrapper p {
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.6;
}

/* Projects Section for Top Page */
.home .projects-section {
    background-color: white;
}

.home .projects-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Remove top padding on the top page projects section itself */
.home .projects-section {
    padding-top: 0;
}

/* Projects: PC version using hero-content structure */
.home .projects-content .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.home .projects-content .hero-icon {
    width: 147px;
    height: 98px;
    flex-shrink: 0;
}

.home .projects-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home .projects-content .hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    justify-items: center;
}

.projects-cta {
    text-align: center;
}

.projects-btn {
    display: inline-block;
    background-color: #d98507;
    color: #ffffff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.projects-btn:hover {
    background-color: #b87300;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* Unified horizontal padding for section content wrappers on desktop */
section>[class$="-content"]:not(.contact-cta-content) {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .background {
        width: 100%;
    }

    .ceo-content {
        flex-direction: column;
        align-items: center;
    }

    .ceo-image {
        flex: none;
        width: 100%;
        max-width: 385px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hamburger {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10000;
    }

    /* Review bar: ensure rating stays inside white area on mobile */
    .review-section {
        height: auto;
        padding: 8px 12px;
        min-height: 40px;
        align-items: center;
    }

    .review-content {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left;
    }

    .review-rating {
        gap: 4px;
        flex-shrink: 0;
        align-items: center;
    }

    .rating-label {
        display: none;
    }

    .stars .star {
        width: 12px;
        height: 12px;
    }

    .review-icon {
        width: auto !important;
        height: 20px;
        max-height: 20px;
        flex-shrink: 0;
    }

    /* SP版でもreview-textを自動再生 */
    .review-text-container {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        margin: 0 8px;
        position: relative;
    }

    .header-review-text {
        display: inline-block;
        animation: scroll-text 20s linear infinite;
        white-space: nowrap;
    }


    .ceo-line {
        width: 100%;
        max-width: 380px;
    }

    /* Center CEO image on SP */
    .ceo-section .ceo-image {
        margin: 0 auto;
        margin-left: 0;
    }

    .company-details {
        padding: 30px;
    }

    /* Unified horizontal padding for section content wrappers on mobile */
    section>[class$="-content"]:not(.contact-cta-content) {
        padding-left: 0px;
        padding-right: 0px;
    }

    /* Ensure campaign button padding on mobile overrides desktop */
    .campaign-btn {
        padding: 12px 25px;
        white-space: nowrap;
    }

    /* Project detail: prevent titles from overflowing content block */
    .single-project .section-title {
        font-size: 24px;
        line-height: 1.3;
        white-space: normal;
    }

    .single-project .section-subtitle {
        font-size: 14px;
        line-height: 1.3;
        white-space: normal;
    }

    /* Filter: show select on SP, hide buttons */
    .filter-buttons {
        display: none;
    }

    /* Contact form: stack label and input, make labels smaller */
    .wpcf7-form {
        max-width: 100%;
    }

    .form-row {
        display: block;
        grid-template-columns: none;
        gap: 8px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
        padding-top: 0;
        position: static;
        display: inline-flex;
        align-items: center;
    }

    .required {
        font-size: 9px;
        padding: 1px 6px;
        margin-left: 8px;
        position: static;
        top: auto;
        left: auto;
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
    }

    /* Project detail: ensure before/after images fit inside dashed box */
    .before-after-images {
        flex-direction: column;
        gap: 20px;
    }

    .before-image,
    .after-image {
        width: 100%;
        max-width: 448px;
        height: auto;
    }

    .before-image img,
    .after-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .before-label,
    .after-label {
        font-size: 18px;
        padding: 8px 16px;
        bottom: 8px;
        left: 0;
    }

    /* Hero-like sections: image left, text right; fit and center group on SP */
    .hero-content,
    .main-visual-content,
    .key-visual-section .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 14px;
        text-align: left;
    }

    .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 0 1 auto;
        min-width: 0;
    }

    .hero-subtitle,
    .hero-title {
        width: auto;
        max-width: 100%;
        display: inline-block;
    }

    .hero-subtitle {
        font-size: clamp(14px, 4.2vw, 18px);
        line-height: 1.3;
    }

    .hero-title {
        font-size: clamp(20px, 5.2vw, 26px);
        line-height: 1.25;
    }
}

/* Force hero icon + text to stay on one row on SP (override any column rules) */
.hero-content {
    flex-direction: row !important;
    flex-wrap: nowrap;
    text-align: left !important;
}

.hero-icon {
    flex: 0 0 auto;
}

.hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Campaign hero on top page should match campaign-section background */
.campaign-hero-section {
    background-color: #ffffff;
}

/* Desktop: don't wrap hero titles */
@media (min-width: 769px) {
    .hero-title {
        white-space: nowrap;
    }
}

/* Hero subtitle colors per page (aligned to design palette) */
.home .hero-subtitle {
    color: #1e6300;
}

.page-template-page-company .hero-subtitle {
    color: #1e6300;
}

.post-type-archive .hero-subtitle {
    color: #000000;
}

.single-project .hero-subtitle {
    color: #1e6300;
}

.page-template-page-contact .hero-subtitle {
    color: #d98507;
}

.campaign-hero-section .hero-subtitle {
    color: #c4e8f7;
}

/* Final mobile override to ensure icon left / text right on every hero */
@media (max-width: 768px) {
    .hero-section .hero-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .hero-section .hero-icon {
        flex: 0 0 auto;
    }

    .hero-section .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .hero-section .hero-text {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        text-align: left !important;
    }

    /* Why Choose: enforce row layout and tidy text stack */
    .why-choose-section .hero-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .why-choose-section .hero-icon img {
        width: clamp(40px, 12vw, 64px);
        height: auto;
    }

    .why-choose-section .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 0 20px;
    }
}

/* Unified hero header (apply to all hero-content) */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 0;
    max-width: var(--content-max);
    margin: 0 auto 60px;
}

.hero-content .hero-icon {
    width: 63px;
    height: 63px;
    flex-shrink: 0;
}

.hero-content .hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add mobile carousel behavior for related-projects */
@media (max-width: 768px) {

    /* One card at a time, centered */
    .related-projects-grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* center the visible card like projects.html (312px card) */
        padding: 0;
        scroll-padding: calc((100vw - 312px) / 2);
    }

    .related-projects-grid>* {
        scroll-snap-align: center;
    }

    /* Match card size to projects.html */
    .related-project-card {
        flex: 0 0 312px;
        width: 312px;
        margin: 0;
        box-sizing: border-box;
        border: 2px solid #000000;
    }
}

/* ========================================
   RESPONSIVE FIXES (PAGE-SCOPED)
   ======================================== */
@media (max-width: 768px) {

    /* Project detail: overview table single-column (label over value) */
    .single-project .overview-table {
        padding: 20px;
    }

    .single-project .overview-table .table-row {
        display: block;
        padding: 16px 0;
    }

    .single-project .overview-table .table-label {
        width: 100%;
        padding-left: 0;
        margin-bottom: 6px;
    }

    .single-project .overview-table .table-value {
        padding-left: 0;
    }
}

/* KV illustration in normal flow, centered */
.kv-illustration {
    position: static;
    width: 100%;
    max-width: 1200px;
    margin: 12px auto 16px;
    z-index: 1;
}

.kv-illustration picture,
.kv-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

/* SP: features-content as carousel (1 card per view) */
.key-visual-section .features-content {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scroll-behavior: smooth;
}

.key-visual-section .features-content .feature-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

@media (min-width: 769px) {

    /* Desktop: show 3 features at once (grid), no carousel */
    .key-visual-section .features-content {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
        overflow: visible;
        scroll-snap-type: none;
    }

    .key-visual-section .features-content .feature-card {
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) {
    .home .container {
        background-size: initial;
        background-position: top center, top center;
        background-repeat: no-repeat, no-repeat;
    }
}

/* Top page projects: show 2 centered cards on medium viewports */
@media (min-width: 769px) and (max-width: 1200px) {
    .home .projects-grid {
        grid-template-columns: repeat(2, minmax(312px, 1fr));
        justify-content: center;
        justify-items: center;
    }

    .home .projects-grid .project-card:nth-child(n+3) {
        display: none;
    }
}

/* Desktop: pull footer-links slightly left by giving it a right gutter equal to logo width */
@media (min-width: 1201px) {
    .footer-links {
        margin-right: 200px;
    }
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: 80px 20px;
    background-color: #deecd8;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.gallery-section .section-title {
    max-width: var(--content-max);
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.gallery-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-box {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    padding: 40px 20px;
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
}

.filter-content {
    max-width: var(--content-max);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   NEW REASON GRID STYLES (OVERRIDE)
   ======================================== */
.why-choose-section .reasons-grid {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.why-choose-section .reason-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: none;
    border-radius: 0;
    overflow: visible;
    min-height: auto;
    margin-bottom: 0;
}

.why-choose-section .reason-label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-choose-section .reason-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
}

.why-choose-section .reason-image {
    flex: 1;
    height: 360px;
    order: initial;
    background-color: white;
    overflow: hidden;
}

.why-choose-section .reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reason-item:first-child .reason-image {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: calc(100% - 40px);
    padding: 20px;
}

.why-choose-section .reason-item:first-child .reason-image img {
    object-fit: cover;
}

.why-choose-section .reason-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    gap: 16px;
    order: initial;
}

.why-choose-section .reason-text {
    max-width: 580px;
}

.why-choose-section .reason-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 20px;
}

.why-choose-section .reason-subtitle {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #666666;
    margin: 0;
}

.why-choose-section .reason-text-wrapper p:not(.reason-subtitle) {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Hide old reason elements */
.why-choose-section .reason-number {
    display: none;
}

/* Mobile layout for reasons */
@media (max-width: 768px) {
    .why-choose-section .reasons-grid {
        gap: 0;
    }

    .why-choose-section .reason-content {
        flex-direction: column;
        gap: 20px;
    }

    .why-choose-section .reason-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        height: 240px;
    }

    .reason-item:nth-child(1) .reason-image,
    .reason-item:nth-child(2) .reason-image,
    .reason-item:nth-child(3) .reason-image,
    .reason-item:nth-child(4) .reason-image {
        border-radius: 0;
    }

    .why-choose-section .reason-item:first-child .reason-image {
        height: auto;
        aspect-ratio: 1;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .why-choose-section .reason-item:first-child .reason-image img:nth-child(5),
    .why-choose-section .reason-item:first-child .reason-image img:nth-child(6) {
        display: none;
    }

    .why-choose-section .reason-text-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .why-choose-section .reason-title {
        font-size: 28px;
    }

    .why-choose-section .reasons-grid .reason-item .reason-title::after {
        bottom: -3px;
        height: 10px;
    }

    .why-choose-section .reason-subtitle {
        font-size: 16px;
    }

    .why-choose-section .reason-text-wrapper p:not(.reason-subtitle) {
        font-size: 14px;
    }
}


/* ========================================
RECRUITMENT SECTION STYLES
======================================== */

.recruitment-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.recruitment-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.recruitment-image {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    flex: 0 0 400px;
    height: 100%;
    padding-top: 120px;
}

.recruitment-image01,
.recruitment-image02 {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.recruitment-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruitment-text {
    flex: 1;
    padding: 20px 0;
}

.recruitment-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #000000;
    margin-bottom: 30px;
    border-bottom: 3px solid #d98507;
    padding-bottom: 10px;
    display: inline-block;
}

.recruitment-message h3 {
    font-size: 20px;
}

.recruitment-message p {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 16px;
}

.recruitment-message p:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recruitment-section {
        padding: 60px 20px 0;
    }

    .recruitment-content {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 0 15px;
    }

    .recruitment-image01,
    .recruitment-image02 {
        aspect-ratio: unset;
    }

    .recruitment-image02 {
        display: none;
    }

    .recruitment-image {
        padding-top: 0;
    }

    .recruitment-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .recruitment-message p {
        font-size: 14px;
        margin-bottom: 12px;
    }
}


/* ========================================
WORK VALUES SECTION STYLES
======================================== */

.work-values-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.work-values-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.work-values-header {
    background-color: #d98507;
    color: white;
    padding: 20px 30px;
    margin-bottom: 40px;
}

.work-values-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    color: white;
}

.work-values-intro {
    margin-bottom: 40px;
}

.work-values-intro p {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 1.8;
    margin: 0;
}

.work-values-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-value-item {
    background-color: white;
    padding: 30px;
    /* border-radius: 8px; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d98507;
}

.work-value-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 0;
}

.work-value-description {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 1.8;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .work-values-section {
        padding: 60px 20px;
    }

    .work-values-content {
        padding: 0 15px;
    }

    .work-values-header {
        padding: 15px 20px;
        margin-bottom: 30px;
    }

    .work-values-title {
        font-size: 20px;
    }

    .work-values-intro p {
        font-size: 14px;
    }

    .work-values-list {
        gap: 20px;
    }

    .work-value-item {
        padding: 20px;
    }

    .work-value-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .work-value-description {
        font-size: 14px;
    }
}