/* リセットと基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 共通クラス */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.2rem;
    color: #00b894; /* テーマカラー：グリーン */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.bg-light { background-color: #f9f9f9; }
.bg-dark { background-color: #2d3436; }
.bg-accent { background-color: #00b894; color: #fff; }
.text-white { color: #fff !important; }
.mb-2 { margin-bottom: 20px; }

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/re-volt/img_revolt.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.company-name {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    color: #00b894;
    display: block;
}

.sub-logo {
    font-size: 1.5rem;
    vertical-align: middle;
}

.hero-lead {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------- */
/* Introduction Section (Update: 画像対応) */
/* ---------------------------------------------------------------------- */
.intro-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.intro-image {
    flex: 1 1 400px; /* 画像エリア */
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

.intro-content {
    flex: 1 1 400px; /* テキストエリア */
}

/* グリッドレイアウト */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* intro内のカード調整 */
.intro-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

/* カードスタイル */
.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #00b894;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* リストスタイル */
.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #00b894;
}

.feature-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* テーブルスタイル */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 1000px; /* スクロールさせるために幅を指定 */
    min-width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #00b894;
    color: #fff;
}

.highlight {
    font-weight: bold;
    color: #00b894;
}

.note {
    font-size: 0.9rem;
    color: #666;
}

/* ---------------------------------------------------------------------- */
/* Value Proposition (Update: 画像付きカード) */
/* ---------------------------------------------------------------------- */
.value-item {
    background: rgba(255,255,255,0.1);
    padding: 0; /* 画像を端まで表示するためpadding削除 */
    border-radius: 8px;
    overflow: hidden; /* 画像が角からはみ出るのを防ぐ */
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.value-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.value-body {
    padding: 25px; /* テキストエリアにpaddingを再設定 */
}

.value-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00b894;
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.value-item p {
    color: #ccc;
    font-size: 0.95rem;
}

/* シミュレーション */
.simulation-box {
    background: #fff;
    border: 2px solid #00b894;
    border-radius: 10px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.price {
    font-size: 1.5rem;
}

.highlight-text {
    color: #e74c3c;
}

.divider {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.small-text {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 20px;
}

.result {
    background: #00b894;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ---------------------------------------------------------------------- */
/* Strategy Section (Update: 背景画像対応) */
/* ---------------------------------------------------------------------- */
.bg-image-overlay {
    /* 背景画像設定（※本番では実際の画像URLに変更してください） */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/re-volt/revolt_img09.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.strategy h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff; /* 背景が暗いので白文字強制 */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.strategy p {
    font-size: 1.1rem;
    color: #fff;
}

/* Footer */
footer {
    background: #2d3436;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #444;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00b894;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
}

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

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    h3 {
        font-size: 1.4rem;
    }

    .price {
        font-size: 1.2rem;
    }
    
    .sim-row {
        flex-direction: column;
    }
    
    /* Intro画像レスポンシブ */
    .intro-wrapper {
        flex-direction: column;
    }
    .intro-image, .intro-content {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* RE-VOLT サービスの流れ セクション全体 */
.revolt-flow-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

/* フローチャートのコンテナ */
.flow-chart {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}

/* PC表示（993px以上） */
@media (min-width: 993px) {
    .flow-step {
        flex-basis: calc(33.33% - 30px);
        min-width: 250px;
        text-align: center;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px 15px;
        margin-bottom: 30px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .flow-step::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 20px;
        background-color: #ccc;
        display: none;
    }
    
    .flow-step:nth-child(-n+3)::after {
        display: block; 
    }
}

/* 共通スタイル */
.flow-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #ff8c00;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 50px;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 1.1rem;
    color: #004a80;
    margin-bottom: 10px;
}

/* モバイル対応 (992px以下) */
@media (max-width: 992px) {
    .flow-chart {
        flex-direction: column; 
        align-items: center;
    }
    
    .flow-step {
        flex-basis: 80%; 
        min-width: unset;
        width: 80%;
        margin-bottom: 30px;
    }
    
    .flow-step::after {
        content: '▼';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        color: #ff8c00;
        font-size: 1.5rem;
    }

    .flow-step:last-child::after {
        content: none;
    }
}

/* Contact Form */
.contact-form {
    background-color: #f4fcfb;
    padding: 80px 0;
}

.contact-form p.text-center {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

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

.wpcf7 p { margin-bottom: 20px; }
.wpcf7 label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    margin-top: 20px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #00b894;
    box-shadow: 0 0 5px rgba(0, 184, 148, 0.5);
    outline: none;
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 18px 20px;
    background-color: #00b894;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    letter-spacing: 1px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #00a082;
}

.wpcf7-checkbox, .wpcf7-radio { margin-top: 5px; }
.wpcf7-list-item { margin: 0 0 5px 0; }

@media (max-width: 768px) {
    .contact-form { padding: 60px 0; }
    .wpcf7 input[type="submit"] {
        max-width: 100%;
        font-size: 1.1rem;
        padding: 15px 20px;
    }
}