/* ===== 基本設定 ===== */
:root {
    --primary-color: #007bff; /* メインカラー */
    --secondary-color: #6c757d; /* サブカラー */
    --text-color: #333;
    --bg-color: #fff;
    --light-bg-color: #f8f9fa;
    --heading-font: 'Noto Sans JP', sans-serif;
    --body-font: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}

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

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: #f8f9fa;
}

.section-button {
    text-align: center;
    margin-top: 40px;
}
.sp-only { display: none; }


/* ===== セクション1: ファーストビュー ===== */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://placehold.jp/1920x1080.png?text=現場の背景写真');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-main-copy {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-sub-copy {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
}
.award-logo {
    width: 80px;
    height: 80px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ===== セクション2: 課題提起 ===== */
.problem-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}
.problem-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}
.problem-list li {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.problem-list li i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* ===== セクション3: ストーリー ===== */
.story-section {
    padding: 80px 0;
}
.story-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.story-block {
    text-align: center;
}
.story-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.story-block img {
    width: 100%;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== セクション4: 解決策と機能 ===== */
.solution-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}
.solution-table-wrapper {
    overflow-x: auto;
}
.solution-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.solution-table th, .solution-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.solution-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
}
.solution-table td:first-child {
    width: 40%;
    font-weight: 700;
}
.solution-table td i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    vertical-align: middle;
}

/* ===== セクション5: 信頼の証 ===== */
.trust-section {
    padding: 80px 0;
}
.trust-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.trust-content img {
    max-width: 400px;
    border-radius: 5px;
}
.trust-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ===== セクション6: 料金プラン ===== */
.pricing-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}
.pricing-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.pricing-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.pricing-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.pricing-box h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}
.pricing-includes {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
}
.pricing-includes h4 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.pricing-includes ul {
    list-style: none;
}
.pricing-includes li {
    margin-bottom: 10px;
}
.pricing-includes li i {
    color: var(--primary-color);
    margin-right: 10px;
}
.pricing-includes li i.fa-star {
    color: #f0ad4e;
}


/* ===== セクション7: 特別な特典 ===== */
.feature-section {
    padding: 80px 0;
}
.feature-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--light-bg-color);
    padding: 50px;
    border-radius: 10px;
}
.feature-content img {
    max-width: 450px;
    border-radius: 5px;
}
.feature-text {
    font-size: 1.1rem;
}

/* ===== セクション8: よくある質問 ===== */
.faq-section {
    padding: 80px 0;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}
.faq-question i.fa-question-circle {
    color: var(--primary-color);
    margin-right: 15px;
}
.faq-question i.fa-chevron-down {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i.fa-chevron-down {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--light-bg-color);
}
.faq-answer p {
    padding: 0 20px 20px 20px;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* 十分な高さを確保 */
    padding-bottom: 20px; /* JSでの制御ではなくCSSで */
}

/* ===== セクション9: クロージング ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}
.contact-section .section-title {
    color: #fff;
}
.contact-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
}
.contact-section .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}
.contact-section .btn-primary:hover {
    background-color: #eee;
}
.contact-section .btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.contact-section .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}
.company-logo {
    margin-top: 60px;
}
.company-logo img {
    filter: brightness(0) invert(1);
}

/* ===== フッター ===== */
.footer {
    padding: 20px 0;
    text-align: center;
    background-color: #343a40;
    color: #fff;
}

/* ===== レスポンシブ対応 (スマートフォン) ===== */
@media (max-width: 768px) {
    .sp-only { display: block; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }

    .hero-main-copy { font-size: 2rem; }
    .hero-sub-copy { font-size: 1.1rem; }
    .hero-trust { flex-direction: column; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    
    .story-content { grid-template-columns: 1fr; }
    .trust-content { flex-direction: column; }
    .pricing-content { grid-template-columns: 1fr; }
    
    .feature-content {
        flex-direction: column;
        padding: 30px;
    }
    .feature-content img {
        max-width: 100%;
    }

    .faq-question { font-size: 1rem; }
}