/* =================================================================
   PC Styles
================================================================= */

/* PC Styles Restoration */
.header-cta-blocks {
    flex-direction: column;
    align-items: center;
}

.color-cc0000 {
    color: #cc0000 !important;
}





.cta-container {
    text-align: center;
    padding-bottom: 50px;
}

/* New Header Styles V2 (Updated) */
.new-header-v2 {
    padding: 50px 0;
}

.header-main-content {
    background-image: url('img/MV2.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: left;
}

.header-text-content {
    padding-left: 30px;
}

.header-main-title-v2 {
    font-size: 6rem;
    font-weight: bold;
    color: #333;
    text-shadow: -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff;
    white-space: nowrap;
}

.header-main-title-v2 .color-eb4d1d {
    color: #eb4d1d;
}

.new-text-area {
    text-align: center;
    margin: 50px 0;
    font-size: 2.0rem;
    line-height: 2.0em;
}

/* General CTA Block Styles */
.header-cta-blocks {
    display: flex;
    justify-content: center;
    gap: 20px;
    -webkit-flex-direction: column;
    /* For older Chrome versions */
    flex-direction: column;
}

.cta-block-image {
    width: 100%;
    max-width: 900px;
}

.cta-block-image img {
    width: 100%;
    height: auto;
}

.cta-document-block {
    position: relative;
}

.document-link {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
}

.document-button-img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.document-link:hover .document-button-img {
    opacity: 0.8;
}

/* "こんなお悩みありませんか？" Section Styles */
#section1 {
    background-color: #f0fae2;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px calc(50vw - 50%) 0;
    box-sizing: border-box;
}

#section1 h2.bg_grey {
    background: none;
}

#section1 h2.bg_grey span {
    background: linear-gradient(transparent 60%, #e0e0e0 60%) !important;
    padding: 0 10px !important;
    font-size: 3rem;
    font-weight: bold;
    color: #006331;
}



ul.quote li {
    position: relative;
    list-style: none;
    background: none !important;
    padding: 0;
    margin-bottom: 20px;
}

ul.quote li img {
    width: 100%;
    height: auto;
}

ul.quote li span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 85%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #4A5C52;
}

/* "そのお悩み、私たちが解決します。" Section Styles */
.solution-section {
    padding: 50px 0;
}

.section-title-solution {
    font-size: 5rem;
    font-weight: bold;
    color: #006633;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #006633;
    padding-bottom: 10px;
}

.section-title-solution .color-black {
    color: #333;
}

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

.solution-item {
    border: 1px solid #ddd;
    padding: 20px 40px;
    border-radius: 8px;
    background-color: #fff;
}

.solution-number {
    font-size: 6rem;
    font-weight: bold;
    display: block;
}

.color-977807 {
    color: #977807;
}

.color-d8422e {
    color: #d8422e;
}

.color-da6488 {
    color: #da6488;
}

.color-71a858 {
    color: #71a858;
}

.solution-title {
    font-size: 3rem;
    font-weight: bold;
    display: inline-block;
    line-height: 1.8;
    padding: 5px 10px;
}

.solution-title span {
    padding: -5px 10px;
}

.highlight-yellow {
    background-color: #fff4cc;
}

.highlight-lightblue {
    background-color: #ffe4cf;
}

.highlight-lightgreen {
    background-color: #f6e4e9;
}

.highlight-lightpink {
    background-color: #c8e9b9;
}

.solution-description {
    margin-top: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-weight: normal;
}

.solution-footer-text-main {
    text-align: center;
    font-weight: bold !important;
    font-size: 2.0rem !important;
    line-height: 2.4 !important;
    margin-top: 100px !important;
    margin-bottom: 20px;
}

.solution-footer-text-highlight {
    text-align: center;
    font-size: 3.6rem !important;
    font-weight: bold !important;
    line-height: 2.0 !important;
    background-color: transparent;
    padding-top: 40px;
}

.solution-footer-text-highlight .highlight-line {
    background-color: #fff4cc;
    padding: 5px 5px;
    border-radius: 5px;
}

/* "私たちが選ばれる３つの理由" Section Styles */
.reasons-section {
    padding: 50px calc(50vw - 50%);
    background-color: #f0fae2;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.section-title-reasons {
    font-size: 5rem;
    font-weight: bold;
    color: #E7504C;
    margin-left: 40px;
    margin-bottom: 40px;
    text-align: left !important;
}

.section-title-reasons .color-black {
    color: #333;
}

.reasons-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.reason-item {
    width: 80%;
    max-width: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    background-size: auto;
    background-position: right 10px bottom 10px;
    background-repeat: no-repeat;
}

.reason-item-1 {
    background-image: url(img/img576.png);
}

.reason-item-2 {
    background-image: url(img/img577.png);
}

.reason-item-3 {
    background-image: url(img/img578.png);
}

.reasons-grid .reason-item:nth-child(1) {
    align-self: flex-start;
}

.reasons-grid .reason-item:nth-child(2) {
    align-self: center;
}

.reasons-grid .reason-item:nth-child(3) {
    align-self: flex-end;
}

.reason-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.reason-number {
    font-size: 5rem;
    font-weight: bold;
}

.reason-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.reason-content {
    margin-top: 20px;
}

.reason-features {
    list-style: none;
    padding: 0;
}

.reason-features li {
    font-size: 1.8rem !important;
    line-height: 2.0 !important;
    margin-bottom: 10px;
    margin-left: 20px;
    font-weight: 500;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.reason-description {
    margin-top: 20px;
    font-size: 1.8rem !important;
    line-height: 2.0 !important;
    margin-left: 20px;
    color: #333;
    font-weight: 600;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* "自社サイト成長支援コース" Section Styles */
.course-section {
    padding: 40px 10px;
}

.section-title-course {
    font-size: 6rem;
    font-weight: bold;
    color: #dd4a08;
    margin-bottom: 20px;
    border-left: 10px solid #dd4a08;
    padding-left: 15px;
}

.course-description {
    font-size: 2.0rem;
    color: #000000;
    line-height: 2.0;
    margin: 50px;
}

.course-features-wrapper {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
}

.subheading-course {
    font-size: 2.0rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.subheading-course .underlined {
    font-size: 4rem;
    padding-bottom: 10px;
}

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

.course-item {
    background-color: #fff;
    border: 1px solid #e4bea5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.course-icon img {
    height: 80px;
    width: auto;
    margin: 15px;
    object-fit: contain;
}

.course-item-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.course-item-description {
    font-size: 1.6rem;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    margin-top: 15px;
}

/* "ご予算や状況に合わせて選べる3つのプラン" Section Styles */
.plans-section {
    background-color: #f8f5ef;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 50px calc(50vw - 50%);
    box-sizing: border-box;
}

.section-title-plans {
    font-size: 4rem;
    font-weight: bold;
    color: #E7504C;
    margin-bottom: 20px;
    text-align: center;
}

.section-title-plans .color-black {
    color: #333;
}


.section-description-plans {
    font-size: 2.0rem;
    color: #555;
    line-height: 2.0;
    margin-bottom: 40px;
    text-align: center;
}

.plans-grid {
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    /* Set to 1 column for vertical stacking on PC */
    gap: 20px;
    justify-items: center;
}

.plan-image-item {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
    width: 90%;
}

.plan-image-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.plan-image-button {
    width: 32%;
    /* Adjust as needed */
    max-width: 400px;
    /* Adjust as needed */
    position: absolute;
    bottom: 30px;
    left: 30px;
    /* Adjust this value */
    transform: none;
    /* Remove transform */
    transition: opacity 0.3s ease;
}

.plan-image-button:hover {
    opacity: 0.8;
}

.plans-footer-description {
    margin-top: 30px;
    font-size: 1.8rem;
    color: #555;
    line-height: 2.0;
    text-align: center;
}

/* "各プランの内容比較" Section Styles */
.comparison-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f5ef;
}

.section-title-comparison {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    padding: 0 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.comparison-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.comparison-table td:first-child {
    font-weight: bold;
}

.comparison-table .checkmark {
    color: #006633;
    font-size: 1.5rem;
    font-weight: bold;
}

.comparison-footer-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* FAQ and CTA Section Styles */
.faq-section {
    background-color: #f0fae2;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 50px calc(50vw - 50%);
    box-sizing: border-box;
}

.section-title-faq {
    font-size: 2.5rem;
    font-weight: bold;
    color: #006633;
    text-align: center;
    margin-bottom: 40px;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    padding: 15px 50px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
}

.faq-answer {
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: none;
    font-size: 1.8rem;
    line-height: 2.0;
}

.faq-section .header-cta-blocks {
    margin-top: 100px;
}

/* EC Mall Improvement Section Styles */
.ec-improvement-section {
    background-color: #FFFCF4;
    padding: 50px 0;
    text-align: center;
}

.ec-improvement-section img {
    max-width: 900px;
    height: auto;
}

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =================================================================
   Mobile Styles
================================================================= */
@media (max-width: 767px) {

    /* New Header Styles V2 */
    .header-main-content {
        margin-top: -20px;
        padding: 20px 10px;
        background-position: right top -20px;
        /* Horizontal: right, Vertical: -20px from top */
    }

    .header-text-content {
        padding-left: 0;
    }

    .header-main-title-v2 {
        font-size: 8vw;
        line-height: 2.2;
        white-space: normal;
    }

    .new-text-area p {
        font-size: 1.6rem;
    }

    /* CTA Blocks */
    .header-cta-blocks {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-block-image {
        width: 100%;
    }

    .cta-document-block {
        width: 100%;
    }

    /* "こんなお悩みありませんか？" Section Styles */

    #section1 h2.bg_grey span {
        font-size: 6vw;
        /* Adjust mobile font size as needed */
    }

    ul.quote li img {
        height: auto;
    }

    ul.quote li span {
        font-size: 4vw;
        /* Set font size relative to viewport */
        line-height: 1.6;
        width: 60%;
    }

    ul.quote li {
        height: auto !important;
        /* Let the image determine the height */
        width: 90vw !important;
        /* Set width relative to viewport */
        margin: 0 auto -2vh 0 !important;
        /* Center and set bottom margin relative to viewport height */
        transform: none !important;
        /* Remove scaling */
        line-height: normal !important;
        /* Restore line height */
    }


    /* "そのお悩み、私たちが解決します。" Section Styles */
    .section-title-solution {
        font-size: 8vw;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-title {
        font-size: 6vw;
    }

    .solution-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .solution-item .solution-number {
        margin-bottom: 0px;
    }

    .solution-header-mobile {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .solution-description {
        font-size: 1.6rem !important;
    }

    .solution-footer-text-main {
        text-align: center;
        line-height: 2.2;
        font-size: 1.7rem !important;
        margin-bottom: 20px;
    }

    .solution-footer-text-highlight {
        font-size: 6vw !important;
        line-height: 1.6;
        padding: 5px 10px;
    }

    .solution-footer-text-highlight .highlight-line {
        padding: 2px 5px;
    }

    /* "私たちが選ばれる３つの理由" Section Styles */
    .section-title-reasons {
        font-size: 8vw;
        text-align: center;
    }

    .reason-title {
        padding-left: 10px;
        font-size: 2.0rem;
        font-weight: bold;
        color: #333;
    }

    .reason-features li {
        font-size: 1.6rem !important;
    }

    .reason-description {
        font-size: 1.6rem !important;
    }



    .reasons-grid {
        flex-direction: column;
        align-items: center;
    }

    .reason-item {
        width: 90%;
        max-width: none;
        margin-bottom: 20px;
        align-self: auto !important;
        text-align: left;
    }

    .reason-header {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    /* "自社サイト成長支援コース" Section Styles */
    .section-title-course {
        font-size: 2.5rem;
    }

    .section-title-plans {
        font-size: 2.4rem;
    }

    .section-description-plans {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .subheading-course .underlined {
        font-size: 2.0rem;
        padding-bottom: 10px;
    }

    /* "ECモール依存脱却コース" Section Styles */
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-description {
        font-size: 1.6rem;
        margin: 10px;
    }

    /* "ご予算や状況に合わせて選べる3つのプラン" Section Styles */
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-item-inner {
        flex-direction: column;
    }

    .plan-image-item .pc-image {
        display: none;
    }

    .plan-image-item .mobile-image {
        display: block;
    }

    .plan-image-item {
        width: 100%;
        position: relative;
        height: auto;
        /* Let content determine height */
    }

    .plan-image-button {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }

    /* "各プランの内容比較" Section Styles */
    .section-title-comparison {
        font-size: 6vw;
    }

    .comparison-table th,
    .comparison-table td {
        font-size: 4vw
    }

    /* No specific mobile styles needed for this section yet */

    /* FAQ Section Styles */
    .faq-items {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    /* EC Mall Improvement Section Styles */
    #section9 {
        width: 95%;
        margin: 0 auto;
        overflow: hidden;
    }

    #section9 img {
        max-width: 100%;
    }
}

/* Apply Noto Sans JP Font */
#home-page {
    font-family: 'Noto Sans JP', sans-serif !important;
}

/* PC/Mobile Line Break Control */
/* Hide .pc-only on mobile */
@media (max-width: 767px) {
    .pc-only {
        display: none;
    }
}

/* Hide .mobile-only on PC */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* Old Top Page Fixes */
.page-template-tpl-old-home #section1 {
    background-color: transparent !important;
}