/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #FFFFFF;
    padding-top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333333;
}

h1, h2, h3 {
    font-weight: 700;
    color: #333333;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

/* ヘッダー */
#header {
    background-color: #FFFFFF;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: #333333;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #FFE200;
}

.cta-button {
    display: inline-block;
    background-color: #FFE200;
    color: #333333;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: 1px solid #FFE200;
}

.cta-button:hover {
    background-color: #F7D400;
    transform: translateY(-2px);
}

.header-cta {
    display: block;
}

/* ファーストビュー */
.first-view {
    padding: 150px 0;
    background-image: url('https://qr1.jp/lp/gazou.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
    color: #333333;
    margin-top: 70px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.first-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 226, 0, 0.7), rgba(255, 226, 0, 0.3) 50%, rgba(255, 255, 255, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    text-align: left;
    max-width: 65%;
    margin-left: 5%;
}

.hero-content .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #000000;
    text-shadow: none;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    color: #333333;
    text-shadow: none;
    line-height: 1.8;
}

.highlight-line {
    position: relative;
    display: inline-block;
}

.highlight-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.7);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.highlight-line.is-drawn::after {
    width: 100%;
}

.primary-cta {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: #333333;
    background-color: #FFC000;
    border: 2px solid #FFFFFF;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-shadow: none; /* テキストの白い縁取りを削除 */
}

.primary-cta:hover {
    background-color: #FFB000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #FFE200;
}

/* 各セクション共通 */
section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

/* 課題提起セクション */
.problem-section {
    background-color: #F7F7F7;
}

.problem-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    text-align: center;
}

.problem-item {
    flex-basis: 30%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #FFFFFF;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-item .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    color: #FFE200;
}

.problem-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333333;
}

.problem-item p {
    color: #666;
}

/* 解決策セクション */
.solution-section {
    background-color: #FFFFFF;
    text-align: center;
}

.solution-section .subtitle {
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 60px;
    color: #555;
}

.solution-list {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.solution-item {
    flex-basis: 30%;
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #FFE200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: bounce 2s infinite ease-in-out;
}

.icon-circle .icon {
    font-size: 2.5rem;
    color: #333333;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.solution-item h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #333333;
}

.solution-item p {
    color: #666;
    text-align: left;
}

/* 導入事例セクション */
.cases-section {
    background-color: #F7F7F7;
}

.case-study-list {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.case-study-item {
    flex-basis: 45%;
    padding: 40px;
    background-color: #FFFFFF;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.quote-icon {
    font-family: serif;
    font-size: 4rem;
    color: #FFE200;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.customer-info {
    text-align: right;
    font-weight: 700;
    color: #333333;
}

/* 料金プランセクション */
.price-section {
    background-color: #FFFFFF;
    text-align: center;
}

.plan-list {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.plan-item {
    flex-basis: 45%;
    background-color: #F7F7F7;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    text-align: left;
    border: 1px solid #ddd;
}

.plan-item:hover {
    transform: translateY(-5px);
}

.plan-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333333;
}

.plan-tag {
    color: #555;
    font-weight: 700;
    margin-bottom: 20px;
}

.plan-item p {
    color: #555;
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333333;
    color: #fff;
    border-radius: 50px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.link-button:hover {
    background-color: #555555;
}

/* FAQセクション */
.faq-section {
    background-color: #F7F7F7;
}

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

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 5px;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    color: #333333;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #333333;
}

.faq-question.active:after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    color: #555;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    color: #666;
}

.faq-answer p {
    padding-bottom: 20px;
}

/* 最終CTAセクション */
.final-cta-section {
    background-color: #333333;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.final-cta-inner h2 {
    color: #fff;
}

.final-cta-inner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* フッター */
#footer {
    background-color: #222222;
    color: #ddd;
    padding: 60px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444444;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 35px;
    filter: none;
}

.footer-nav ul {
    display: flex;
    list-style: none;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    color: #ddd;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #FFE200;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* トップへ戻るボタン */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFE200;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/* --- レスポンシブデザイン --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    body {
        padding-top: 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* ヘッダー */
    #header {
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 35px;
        margin-bottom: 10px;
    }

    .nav {
        display: none;
    }

    /* スマホではヘッダーのCTAボタンを非表示 */
    .cta-button.header-cta {
        display: none;
    }

    /* メインビジュアル */
    .first-view {
        padding: 60px 0;
        margin-top: 80px;
        min-height: 400px;
    }

    .first-view::before {
        background: rgba(255, 255, 255, 0.5);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .text-content {
        padding-right: 0;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        white-space: normal;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    }

    .primary-cta {
        width: 100%;
        color: #333333;
        text-shadow: none; /* スマホでもテキストの白い縁取りを削除 */
        border: 2px solid #FFFFFF;
    }

    /* 課題提起、解決策、料金プラン、導入事例 */
    .problem-list,
    .solution-list,
    .case-study-list,
    .plan-list {
        flex-direction: column;
        gap: 20px;
    }

    .problem-item,
    .solution-item,
    .case-study-item,
    .plan-item {
        flex-basis: 100%;
        text-align: left;
    }
    
    .problem-item,
    .solution-item {
        text-align: center;
    }

    .icon-circle {
        margin: 0 auto 20px;
    }

    .plan-item {
        text-align: center;
    }

    .case-study-item .quote {
        font-size: 1rem;
    }

    .case-study-item .customer-info {
        text-align: left;
    }

    /* FAQ */
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .faq-question:after {
        right: 15px;
    }

    .faq-answer {
        padding: 0 15px 20px;
    }

    /* 最終CTAセクション */
    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-inner h2 {
        font-size: 2rem;
    }

    .final-cta-inner p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* フッター */
    #footer {
        background-color: #222222;
        color: #ddd;
        padding: 40px 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .footer-nav ul li {
        margin-left: 0;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* トップへ戻るボタン */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}