/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

.section {
    padding: 60px 0;
    text-align: center;
    opacity: 0; /* 初期状態は非表示（フェードイン用） */
    transform: translateY(20px); /* 初期位置（フェードイン用） */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーション設定 */
}

.section.is-visible {
    opacity: 1; /* 表示状態 */
    transform: translateY(0); /* 表示位置 */
}

.section:nth-child(even) {
    background-color: #f0f4f8; /* 薄い背景色 */
}

h1, h2, h3 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3498db; /* アクセントカラー */
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
    white-space: nowrap; /* ボタン内のテキストが改行されないように */
}

.primary-btn {
    background-color: #3498db;
    color: #fff;
}

.primary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}

.secondary-btn:hover {
    background-color: #ecf0f1;
    transform: translateY(-2px);
}

/* ヒーローセクション (ファーストビュー) */
.hero {
    background: url('https://via.placeholder.com/1920x800/2c3e50/ecf0f1?text=Your+Company+Hero+Image') no-repeat center center/cover; /* 背景画像を設定 */
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* 最小高さを設定して、内容が少なくても領域を確保 */
    position: relative;
    overflow: hidden; /* 画像がはみ出さないように */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* オーバーレイ */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #fff;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* ボタンが複数になった場合でも折り返す */
}

/* お悩みセクション */
.problem-list ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: left;
}

.problem-list li {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1.1em;
    transition: transform 0.2s ease-in-out;
}

.problem-list li:hover {
    transform: translateY(-3px);
}

/* 選ばれる理由セクション */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.strength-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

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

.strength-item h3 {
    color: #3498db;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* サービス紹介セクション */
.service-item {
    display: flex;
    flex-direction: column; /* すべてのサービスで縦並びを維持 */
    align-items: center;
    text-align: left;
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.service-item h3 {
    font-size: 2em;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 20px;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-item li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.service-item li::before {
    content: '✓'; /* チェックマーク */
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-item .target {
    font-weight: 700;
    color: #555;
    margin-top: 20px;
    font-size: 1.1em;
}

.service-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2em;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* 画像をここに入れる想定 */
}
/* imgタグが入った場合は、placeholderの背景色などは不要 */
.service-image-placeholder img {
    object-fit: cover; /* 画像がはみ出さないように */
}


/* 実績・導入事例セクション */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.result-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.result-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* お客様の声セクション */
.voice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.voice-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.voice-item blockquote {
    margin: 0 0 15px;
    font-style: italic;
    color: #555;
}

.voice-item cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
}

/* サービス導入までの流れセクション */
.flow-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.flow-item {
    flex: 1 1 calc(33% - 40px); /* PCで3列、タブレットで2列、スマホで1列 */
    max-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    min-height: 180px; /* ある程度の高さを確保 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flow-item span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.flow-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* FAQセクション */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* 回答が隠れるように */
}

.faq-question {
    font-size: 1.2em;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 10px;
    cursor: pointer; /* クリック可能であることを示す */
    position: relative;
    padding-right: 30px; /* アイコン分のスペース */
}

.faq-question::after {
    content: '+'; /* 閉じた状態のアイコン */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-'; /* 開いた状態のアイコン */
    transform: translateY(-50%) rotate(180deg); /* アニメーション */
}

.faq-answer {
    max-height: 0; /* 初期状態で高さを0にする */
    opacity: 0; /* 初期状態で透明にする */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; /* アニメーション設定 */
    padding-top: 0; /* 初期パディングを0に */
}

.faq-answer.open {
    max-height: 200px; /* 回答の最大高さ（内容に合わせて調整） */
    opacity: 1; /* 不透明にする */
    padding-top: 15px; /* 回答が表示されたときにパディングを追加 */
}


/* フッター */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.company-info {
    max-width: 600px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.company-info h2 {
    color: #ecf0f1;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2em;
}
.company-info h2::after {
    display: none; /* フッターのH2下線は表示しない */
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.company-info th, .company-info td {
    padding: 10px 0;
    border-bottom: 1px solid #444;
    vertical-align: top;
}

.company-info th {
    text-align: left;
    font-weight: 700;
    width: 100px;
    color: #bdc3c7;
}
.company-info td {
    text-align: left;
}

/* Googleマップ埋め込み用コンテナ */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 のアスペクト比 (高さの56.25%が幅の100%になる) */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px; /* 会社情報の最大幅に合わせる */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 元の .map-placeholder は不要になったため非表示 */
.map-placeholder {
    display: none;
}


.cta-bottom {
    background-color: #34495e;
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    width: 100%;
}

.cta-bottom h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 20px;
}
.cta-bottom h2::after {
    background-color: #f39c12; /* CTAの色に合わせた下線 */
}

.cta-bottom p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #eee;
}

.cta-bottom .primary-btn {
    background-color: #f39c12; /* アクセントカラー */
}
.cta-bottom .primary-btn:hover {
    background-color: #e67e22;
}

.phone-contact {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px;
}

.phone-number {
    color: #f39c12; /* アクセントカラー */
    font-size: 1.2em;
}

.hours {
    font-size: 0.9em;
    color: #ccc;
}

.copyright {
    margin-top: 40px;
    font-size: 0.9em;
    color: #ccc;
    border-top: 1px solid #444;
    padding-top: 20px;
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .strength-grid, .results-grid, .voice-list {
        grid-template-columns: 1fr; /* スマホでは1列表示 */
    }

    .flow-item {
        flex: 1 1 100%; /* スマホでは1列 */
        max-width: 100%;
    }

    .service-item {
        flex-direction: column !important; /* スマホでは常に縦並び */
    }

    .footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .company-info, .cta-bottom {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 1.8em;
    }
    .problem-list li {
        font-size: 1em;
        padding: 12px 15px;
    }
    .phone-contact {
        font-size: 1.2em;
    }
}